summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-04 14:21:08 +0000
committerTom Hacohen <tom@stosb.com>2016-03-04 14:21:08 +0000
commit70e900db10473638ddb1d8e55e58d5fd14497142 (patch)
tree1cfc682e96b11d672c8f9842a2b9668c4ffa67a6 /src
parent912f03d6e2cc71b82676a0a73a1df4551eb1d7ab (diff)
Eo tests: Test more cases with legacy events.
Diffstat (limited to 'src')
-rw-r--r--src/tests/eo/suite/eo_test_general.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index c6514cc..cfe5767 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -134,6 +134,11 @@ START_TEST(eo_signals)
134 ck_assert_str_eq(a_desc->name, "a,changed"); 134 ck_assert_str_eq(a_desc->name, "a,changed");
135 fail_if(a_desc == EV_A_CHANGED); 135 fail_if(a_desc == EV_A_CHANGED);
136 136
137 /* Check that when calling again we still get the same event. */
138 const Eo_Event_Description *a_desc2 = eo_base_legacy_only_event_description_get("a,changed");
139 fail_if(!a_desc2);
140 fail_if(a_desc2 != a_desc);
141
137 const Eo_Event_Description *bad_desc = eo_base_legacy_only_event_description_get("bad"); 142 const Eo_Event_Description *bad_desc = eo_base_legacy_only_event_description_get("bad");
138 fail_if(!bad_desc); 143 fail_if(!bad_desc);
139 ck_assert_str_eq(bad_desc->name, "bad"); 144 ck_assert_str_eq(bad_desc->name, "bad");