[UTC/ITC][Dali-core][Non-ACR][Fixed TC fail issue in Emulator]
authorsuhyung Eom <suhyung.eom@samsung.com>
Thu, 13 Oct 2016 01:03:01 +0000 (10:03 +0900)
committersuhyung Eom <suhyung.eom@samsung.com>
Thu, 13 Oct 2016 01:13:46 +0000 (10:13 +0900)
Signed-off-by: suhyung Eom <suhyung.eom@samsung.com>
Change-Id: I95fff9a40d47ef977851eb69121444c03e9bd868

src/itc/dali-core/vector2/ITs-vector2.cpp [changed mode: 0755->0644]
src/itc/dali-core/vector3/ITs-vector3.cpp [changed mode: 0755->0644]
src/utc/dali-core/vector2/utc-dali-vector2.cpp [changed mode: 0755->0644]
src/utc/dali-core/vector3/utc-dali-vector3.cpp [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index b67b422..79cdba7
@@ -427,7 +427,7 @@ void Vector2NormalizeWithLengthAndLengthSquared()
        //      Find length of the vector
        fLengthVal = vec2Values.Length();
                
-       DALI_CHECK_FAIL( fLengthVal     !=      fVecLength , "Length Api failed to return the length of the vector.");
+       DALI_CHECK_FAIL( !Equals(fLengthVal, fVecLength, VECTOR2_MATH_EPSILON ), "Length Api failed to return the length of the vector.");
        
        //      Calculated Normalized Value.
        vec2NormalizedVal.x     =       vec2Values.x/fLengthVal;
old mode 100755 (executable)
new mode 100644 (file)
index e9791a7..56926f7
@@ -875,8 +875,8 @@ void Vector3NormalizeWithLengthAndLengthSquared()
        //      Find length of the vector
        fLengthVal = vec3Values.Length();
        
-       DALI_CHECK_FAIL(        fLengthVal      !=      fVecLength , "Length Api failed to return the length of the vector.");
-       
+       DALI_CHECK_FAIL(  !Equals( fLengthVal, fVecLength, VECTOR3_MATH_EPSILON ), "Length Api failed to return the length of the vector.");
+
        //      Calculated Normalized Value.
        vec3NormalizedVal.x     =       vec3Values.x/fLengthVal;
        vec3NormalizedVal.y     =       vec3Values.y/fLengthVal;
old mode 100755 (executable)
new mode 100644 (file)
index 2f61fb7..a4cfdb4
@@ -430,7 +430,7 @@ void Vector2NormalizeWithLengthAndLengthSquaredP()
   //  Find length of the vector
   fLengthVal = vec2Values.Length();
 
-  DALI_CHECK_FAIL( fLengthVal  !=  fVecLength , "Length Api failed to return the length of the vector.");
+  DALI_CHECK_FAIL( !Equals(fLengthVal, fVecLength, VECTOR2_MATH_EPSILON ) , "Length Api failed to return the length of the vector.");
 
   //  Calculated Normalized Value.
   vec2NormalizedVal.x  =  vec2Values.x/fLengthVal;
old mode 100755 (executable)
new mode 100644 (file)
index 9723069..d28ae10
@@ -879,7 +879,7 @@ void Vector3NormalizeWithLengthAndLengthSquaredP()
   //  Find length of the vector
   fLengthVal = vec3Values.Length();
 
-  DALI_CHECK_FAIL(  fLengthVal  !=  fVecLength , "Length Api failed to return the length of the vector.");
+  DALI_CHECK_FAIL(  !Equals( fLengthVal, fVecLength, VECTOR3_MATH_EPSILON ), "Length Api failed to return the length of the vector.");
 
   //  Calculated Normalized Value.
   vec3NormalizedVal.x  =  vec3Values.x/fLengthVal;