summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-01-09 14:43:52 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-01-09 14:43:52 +0100
commitc6a7b49de3ee87d719c8bc104da446186f9b940c (patch)
tree34d844d9c8de50a808e73a2dabbed8cbed536ad0
parent03008c95f532c30c7c737d50cb04863f554f4b21 (diff)
downloadefl-c6a7b49de3ee87d719c8bc104da446186f9b940c.tar.gz
eo2: update class creation tests, follow new error policy
see previous commit
-rw-r--r--src/tests/eo/suite/eo_test_class_errors.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tests/eo/suite/eo_test_class_errors.c b/src/tests/eo/suite/eo_test_class_errors.c
index 24a07f47e9..cbea8e1b2d 100644
--- a/src/tests/eo/suite/eo_test_class_errors.c
+++ b/src/tests/eo/suite/eo_test_class_errors.c
@@ -231,9 +231,9 @@ START_TEST(eo_null_api)
NULL
};
- TEST_EO_ERROR("_eo2_class_funcs_set", "Ignore %d NULL->%p '%s'. Can't set implementation for NULL API.");
+ TEST_EO_ERROR("_eo2_class_funcs_set", "Class '%s': NULL API not allowed (%d NULL->%p '%s').");
klass = eo_class_new(&class_desc, NULL, NULL);
- fail_if(!klass);
+ fail_if(klass);
fail_unless(ctx.did);
eina_log_print_cb_set(eina_log_print_cb_stderr, NULL);
@@ -264,9 +264,9 @@ START_TEST(eo_wrong_override)
NULL
};
- TEST_EO_ERROR("_eo2_class_funcs_set", "Ignore override %p->%p. Can't find api func description in class hierarchy.");
+ TEST_EO_ERROR("_eo2_class_funcs_set", "Class '%s': Can't find api func description in class hierarchy (%p->%p).");
klass = eo_class_new(&class_desc, NULL, NULL);
- fail_if(!klass);
+ fail_if(klass);
fail_unless(ctx.did);
eina_log_print_cb_set(eina_log_print_cb_stderr, NULL);
@@ -298,9 +298,9 @@ START_TEST(eo_api_redefined)
NULL
};
- TEST_EO_ERROR("_eo2_class_funcs_set", "API already defined %d %p->%p '%s'. Expect undefined behaviour.");
+ TEST_EO_ERROR("_eo2_class_funcs_set", "Class '%s': API previously defined (%d %p->%p '%s').");
klass = eo_class_new(&class_desc, NULL, NULL);
- fail_if(!klass);
+ fail_if(klass);
fail_unless(ctx.did);
eina_log_print_cb_set(eina_log_print_cb_stderr, NULL);
@@ -332,9 +332,9 @@ START_TEST(eo_dich_func_override)
NULL
};
- TEST_EO_ERROR("_dich_func_set", "Already set function for op %d (%s:'%s'). Overriding %p with %p.");
+ TEST_EO_ERROR("_dich_func_set", "Class '%s': Overriding func %p for op %d (%s:'%s') with %p.");
klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);
- fail_if(!klass);
+ fail_if(klass);
fail_unless(ctx.did);
eina_log_print_cb_set(eina_log_print_cb_stderr, NULL);