summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_timer.c
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-09-20 12:43:29 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2016-09-20 12:46:37 +0200
commita6d3c0d0fdd422b377004d45f5f246c5da572fa9 (patch)
tree26710f53ad4ee1b74cf8db9b221ba0eee5c31583 /src/tests/ecore/ecore_test_timer.c
parent13bd4242eca76560fbefd690934bc63a5fbd28c3 (diff)
tests: ecore: switch from fprintf to ck_asser_msg macro for custom error message
The ck_assert_msg macro can do this for us already in a failed case.
Diffstat (limited to '')
-rw-r--r--src/tests/ecore/ecore_test_timer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/ecore/ecore_test_timer.c b/src/tests/ecore/ecore_test_timer.c
index fe802bcc90..63cb5332d0 100644
--- a/src/tests/ecore/ecore_test_timer.c
+++ b/src/tests/ecore/ecore_test_timer.c
@@ -183,8 +183,7 @@ _ecore_promise_quit(void *data, const Efl_Event *ev)
183 double *start = success->value; 183 double *start = success->value;
184 double delta = ecore_loop_time_get() - *start; 184 double delta = ecore_loop_time_get() - *start;
185 185
186 fprintf(stderr, "Ecore promise timeout took %f (should be <= 0.02)\n", delta - 0.2); 186 ck_assert_msg(delta - 0.2 <= 0.02, "Ecore promise timeout took %f (should be <= 0.02)\n", delta - 0.2);
187 fail_if(delta - 0.2 > 0.02);
188 187
189 *bob = EINA_TRUE; 188 *bob = EINA_TRUE;
190 ecore_main_loop_quit(); 189 ecore_main_loop_quit();