summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore.c
diff options
context:
space:
mode:
authorMyoungwoon Roy, Kim <myoungwoon.kim@samsung.com>2018-01-31 18:53:09 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2018-01-31 18:55:40 +0900
commit211093b7c52361f38fd0fa089ebb0c3d6fd1afe6 (patch)
tree0a08af949987ddb2806619f6512c3fd20af831a5 /src/tests/ecore/ecore_test_ecore.c
parente9d1a1e9884331aca633e32f2592739a224dfdb2 (diff)
ecore_event: Check for the valid type
Summary: This patch checks for the valid types. As mentioned API reference documentation, user must know its type before hand. The type should be chedked like previous efl version and ecore_event_type_flush_internal() Test Plan: Execute a ecore test suite. Reviewers: cedric, raster, jpeg, stefan_schmidt, Jaehyun_Cho Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5776
Diffstat (limited to 'src/tests/ecore/ecore_test_ecore.c')
-rw-r--r--src/tests/ecore/ecore_test_ecore.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/ecore/ecore_test_ecore.c b/src/tests/ecore/ecore_test_ecore.c
index 3fd89a90b1..492c2aa033 100644
--- a/src/tests/ecore/ecore_test_ecore.c
+++ b/src/tests/ecore/ecore_test_ecore.c
@@ -531,6 +531,7 @@ START_TEST(ecore_test_ecore_main_loop_event)
531 Ecore_Event_Handler *handler, *handler2, *handler3; 531 Ecore_Event_Handler *handler, *handler2, *handler3;
532 Ecore_Event_Filter *filter_handler; 532 Ecore_Event_Filter *filter_handler;
533 Ecore_Event *event; 533 Ecore_Event *event;
534 Ecore_Event *event2;
534 int res_counter; 535 int res_counter;
535 int type, type2; 536 int type, type2;
536 int *ev = NULL; 537 int *ev = NULL;
@@ -574,6 +575,10 @@ START_TEST(ecore_test_ecore_main_loop_event)
574 event = ecore_event_add(ECORE_EVENT_SIGNAL_EXIT, NULL, NULL, NULL); 575 event = ecore_event_add(ECORE_EVENT_SIGNAL_EXIT, NULL, NULL, NULL);
575 fail_if(event == NULL); 576 fail_if(event == NULL);
576 577
578 /* Add one more events: to check a type */
579 event2 = ecore_event_add(ECORE_EVENT_NONE, NULL, NULL, NULL);
580 fail_if(event2 != NULL);
581
577 ecore_main_loop_begin(); 582 ecore_main_loop_begin();
578 583
579 /* 584 /*