Add logs for UtcDaliGetLogicalCursorIndex. 54/216254/1
authorVictor Cebollada <v.cebollada@samsung.com>
Tue, 22 Oct 2019 15:27:20 +0000 (16:27 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Tue, 22 Oct 2019 15:31:37 +0000 (16:31 +0100)
* It fails from time to time. Adding few logs
  to get more info.

Change-Id: If74388f29367d37913c4b20b113b5343b48413d0
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
automated-tests/src/dali-toolkit-internal/utc-Dali-LogicalModel.cpp

index 833b546..4fe4876 100755 (executable)
@@ -301,7 +301,7 @@ bool GetLogicalCharacterIndexTest( const GetLogicalCharacterIndexData& data )
 
 bool GetLogicalCursorIndexTest( const GetLogicalCursorIndexData& data )
 {
-  std::cout << "  testing : " << data.description << std::endl;
+  tet_printf( "  testing : %s\n", data.description.c_str() );
 
   // Load some fonts.
   TextAbstraction::FontClient fontClient = TextAbstraction::FontClient::Get();
@@ -346,7 +346,7 @@ bool GetLogicalCursorIndexTest( const GetLogicalCursorIndexData& data )
 
     if( logicalModel->mBidirectionalLineIndex != data.cachedBidiLine[index] )
     {
-      std::cout << "  test : " << index << ", different cached line index : " << logicalModel->mBidirectionalLineIndex << ", expected : " << data.cachedBidiLine[index] << std::endl;
+      tet_printf( "  test : %d, different cached line index : %d, expected : %d\n", index, logicalModel->mBidirectionalLineIndex, data.cachedBidiLine[index] );
       return false;
     }
 
@@ -355,7 +355,7 @@ bool GetLogicalCursorIndexTest( const GetLogicalCursorIndexData& data )
 
     if( logicalCursorIndex != data.logicalCursorIndex[index] )
     {
-      std::cout << "  test : " << index << ", visual index : " << visualCharacterIndex << ", different logical cursor index : " << logicalCursorIndex << ", expected : " << data.logicalCursorIndex[index] << std::endl;
+      tet_printf( "  test : %d, visual index : %d, different logical cursor index :%d, expected : %d", index, visualCharacterIndex, logicalCursorIndex, data.logicalCursorIndex[index] );
       return false;
     }
   }