X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-event-thread-callback.cpp;h=5b8a32465d43b9590bda846b61961457d47926bc;hp=0f037d3fc1297aac259b628f5993bd563e2d6006;hb=d07dc4c4a6067ba3080184d862bca40a90d1789c;hpb=05316fdb6779dced99b135c06326ddaeea1fc2ee diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-event-thread-callback.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-event-thread-callback.cpp index 0f037d3..5b8a324 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-event-thread-callback.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-event-thread-callback.cpp @@ -99,10 +99,8 @@ CallbackBase* EventThreadCallback::GetCallback() namespace Test { -bool WaitForEventThreadTrigger( int triggerCount ) +bool WaitForEventThreadTrigger( int triggerCount, int timeoutInSeconds ) { - const int TEST_TIMEOUT(30); - struct timespec startTime; struct timespec now; clock_gettime( CLOCK_REALTIME, &startTime ); @@ -129,7 +127,7 @@ bool WaitForEventThreadTrigger( int triggerCount ) } } clock_gettime( CLOCK_REALTIME, &now ); - if( now.tv_sec - startTime.tv_sec > TEST_TIMEOUT ) + if( now.tv_sec - startTime.tv_sec > timeoutInSeconds ) { // Ensure we break out of the loop if elapsed time has passed break;