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.
This commit is contained in:
Stefan Schmidt 2016-09-20 12:43:29 +02:00
parent 13bd4242ec
commit a6d3c0d0fd
1 changed files with 1 additions and 2 deletions

View File

@ -183,8 +183,7 @@ _ecore_promise_quit(void *data, const Efl_Event *ev)
double *start = success->value;
double delta = ecore_loop_time_get() - *start;
fprintf(stderr, "Ecore promise timeout took %f (should be <= 0.02)\n", delta - 0.2);
fail_if(delta - 0.2 > 0.02);
ck_assert_msg(delta - 0.2 <= 0.02, "Ecore promise timeout took %f (should be <= 0.02)\n", delta - 0.2);
*bob = EINA_TRUE;
ecore_main_loop_quit();