summaryrefslogtreecommitdiff
path: root/src/tests/eo/function_overrides
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-01-18 16:13:30 +0000
committerTom Hacohen <tom@stosb.com>2013-01-18 16:13:30 +0000
commit37efa5efd7d82944e8b03c2379292a2df009a6bd (patch)
tree4e738fa2fe81e11ee5501983d4371db2477851f6 /src/tests/eo/function_overrides
parent506a7bc1fe803497a3c627c51bf2db8d51fbb5cf (diff)
Eo tests: Fix function overrides test to not test some things when NDEBUG is used.
SVN revision: 82987
Diffstat (limited to 'src/tests/eo/function_overrides')
-rw-r--r--src/tests/eo/function_overrides/function_overrides_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/eo/function_overrides/function_overrides_main.c b/src/tests/eo/function_overrides/function_overrides_main.c
index 4ab695f982..ae372c5e87 100644
--- a/src/tests/eo/function_overrides/function_overrides_main.c
+++ b/src/tests/eo/function_overrides/function_overrides_main.c
@@ -43,14 +43,18 @@ main(int argc, char *argv[])
43 43
44 fail_if(eo_do_super(obj, simple_a_print())); 44 fail_if(eo_do_super(obj, simple_a_print()));
45 45
46#ifndef NDEBUG
46 fail_if(eo_do(obj, simple_class_print())); 47 fail_if(eo_do(obj, simple_class_print()));
48#endif
47 49
48 fail_if(!eo_class_do(SIMPLE_CLASS, simple_class_print())); 50 fail_if(!eo_class_do(SIMPLE_CLASS, simple_class_print()));
49 fail_if(!eo_class_do(INHERIT_CLASS, simple_class_print())); 51 fail_if(!eo_class_do(INHERIT_CLASS, simple_class_print()));
50 fail_if(!eo_class_do(INHERIT2_CLASS, simple_class_print())); 52 fail_if(!eo_class_do(INHERIT2_CLASS, simple_class_print()));
51 fail_if(!eo_class_do(INHERIT3_CLASS, simple_class_print())); 53 fail_if(!eo_class_do(INHERIT3_CLASS, simple_class_print()));
52 54
55#ifndef NDEBUG
53 fail_if(eo_class_do(SIMPLE_CLASS, simple_a_print())); 56 fail_if(eo_class_do(SIMPLE_CLASS, simple_a_print()));
57#endif
54 58
55 eo_do_super(obj, eo_constructor()); 59 eo_do_super(obj, eo_constructor());
56 eo_do_super(obj, eo_destructor()); 60 eo_do_super(obj, eo_destructor());