From ab72db1d348ee2b2db349233e53804e3df1cb52d Mon Sep 17 00:00:00 2001 From: Victor Cebollada Date: Tue, 22 Oct 2019 16:27:20 +0100 Subject: [PATCH] Add logs for UtcDaliGetLogicalCursorIndex. * It fails from time to time. Adding few logs to get more info. Change-Id: If74388f29367d37913c4b20b113b5343b48413d0 Signed-off-by: Victor Cebollada --- automated-tests/src/dali-toolkit-internal/utc-Dali-LogicalModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automated-tests/src/dali-toolkit-internal/utc-Dali-LogicalModel.cpp b/automated-tests/src/dali-toolkit-internal/utc-Dali-LogicalModel.cpp index 833b546..4fe4876 100755 --- a/automated-tests/src/dali-toolkit-internal/utc-Dali-LogicalModel.cpp +++ b/automated-tests/src/dali-toolkit-internal/utc-Dali-LogicalModel.cpp @@ -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; } } -- 2.7.4