efl: eina_magic_fail now trigger an ERR on NULL instead of CRITICAL.
authorCedric BAIL <cedric.bail@free.fr>
Tue, 8 Jan 2013 09:04:29 +0000 (09:04 +0000)
committerCedric BAIL <cedric.bail@free.fr>
Tue, 8 Jan 2013 09:04:29 +0000 (09:04 +0000)
Updating the test suite.

SVN revision: 82391

src/tests/eina/eina_test_magic.c

index b41ed5d..9d68e7b 100644 (file)
@@ -80,7 +80,7 @@ _eina_test_magic_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const
 {
    struct log_ctx *ctx = data;
 
-   ck_assert_int_eq(level, EINA_LOG_LEVEL_CRITICAL);
+   ck_assert_int_eq(level, EINA_LOG_LEVEL_ERR); /* Level ERR is triggered for access to NULL instead of level CRITICAL */
    ck_assert_str_eq(ctx->msg, fmt);
    ck_assert_str_eq(ctx->fnc, fnc);
    ctx->did = EINA_TRUE;