stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a6d3c0d0fdd422b377004d45f5f246c5da572fa9

commit a6d3c0d0fdd422b377004d45f5f246c5da572fa9
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Tue Sep 20 12:43:29 2016 +0200

    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.
---
 src/tests/ecore/ecore_test_timer.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/tests/ecore/ecore_test_timer.c 
b/src/tests/ecore/ecore_test_timer.c
index fe802bc..63cb533 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)
    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();

-- 


Reply via email to