summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-04 14:29:20 +0000
committerTom Hacohen <tom@stosb.com>2016-03-04 14:29:20 +0000
commit11b3e3ec89db4f6c01ca27546363aedd3f6f8db6 (patch)
treed6e0bf67c63c8cc3885151caa2d3f45944fd73f2
parent8e437300069c22eb1200721db5f39c6063c82dd3 (diff)
Eo tests: Add tests for null (invalid) array callbacks.
-rw-r--r--src/tests/eo/suite/eo_test_general.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index c01a621bcf..9a0db0fbc7 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -124,6 +124,9 @@ START_TEST(eo_signals)
124 simple_a_set(obj, 1); 124 simple_a_set(obj, 1);
125 ck_assert_int_eq(_eo_signals_cb_flag, 0x0); 125 ck_assert_int_eq(_eo_signals_cb_flag, 0x0);
126 126
127 r = eo_event_callback_array_add(obj, NULL, NULL);
128 fail_if(r);
129
127 eo_unref(obj); 130 eo_unref(obj);
128 131
129 obj = eo_add(SIMPLE_CLASS, NULL); 132 obj = eo_add(SIMPLE_CLASS, NULL);