X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-harness.cpp;h=24e320904a2c517ec86a06d9559eb868f47a4d79;hb=03c2c6f58b8812f93b2a396a22a26817aec2ad71;hp=3fed0a20726ec7d3f5d6be02a66bbc81312036e6;hpb=8ca28807aa182b4f3e9f2abc41d45162ed08ad99;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-harness.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-harness.cpp index 3fed0a2..24e3209 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-harness.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-harness.cpp @@ -42,22 +42,17 @@ int RunTestCase( struct ::testcase_s& testCase ) { int result = EXIT_STATUS_TESTCASE_FAILED; - try +// dont want to catch exception as we want to be able to get +// gdb stack trace from the first error +// by default tests should all always pass with no exceptions + if( testCase.startup ) { - if( testCase.startup ) - { - testCase.startup(); - } - result = testCase.function(); - if( testCase.cleanup ) - { - testCase.cleanup(); - } + testCase.startup(); } - catch (...) + result = testCase.function(); + if( testCase.cleanup ) { - printf("Caught exception in test case.\n"); - result = EXIT_STATUS_TESTCASE_ABORTED; + testCase.cleanup(); } return result;