summaryrefslogtreecommitdiff
path: root/src/tests/ecore_con
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-11-30 15:45:39 -0800
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-06 09:29:28 +0100
commitd4cb52815d082ddb55fd80306cbeecfb95de00d1 (patch)
tree4ab8400d20107b56fff8e128ecd0bcda57496bb6 /src/tests/ecore_con
parent355859373eaca690f5f030d241194a5fa1025b8a (diff)
ecore_con: properly track each handler separately and destroy each only once.
Differential Revision: https://phab.enlightenment.org/D7400
Diffstat (limited to 'src/tests/ecore_con')
-rw-r--r--src/tests/ecore_con/ecore_con_test_ecore_con.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/ecore_con/ecore_con_test_ecore_con.c b/src/tests/ecore_con/ecore_con_test_ecore_con.c
index a0e532b..ed77811 100644
--- a/src/tests/ecore_con/ecore_con_test_ecore_con.c
+++ b/src/tests/ecore_con/ecore_con_test_ecore_con.c
@@ -464,13 +464,14 @@ EFL_START_TEST(ecore_test_ecore_con_dns)
464{ 464{
465 Ecore_Con_Server *client; 465 Ecore_Con_Server *client;
466 Ecore_Event_Handler *e_err; 466 Ecore_Event_Handler *e_err;
467 Ecore_Event_Handler *e_del;
467 Ecore_Event_Handler *e_add; 468 Ecore_Event_Handler *e_add;
468 Eina_Bool err_check = EINA_FALSE; 469 Eina_Bool err_check = EINA_FALSE;
469 470
470 e_add = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, _dns_add_del, (void *) &err_check); 471 e_add = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, _dns_add_del, (void *) &err_check);
471 e_err = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ERROR, _dns_err, (void *) &err_check); 472 e_err = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ERROR, _dns_err, (void *) &err_check);
472 /* For timeout */ 473 /* For timeout */
473 e_err = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, _dns_add_del, (void *) &err_check); 474 e_del = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, _dns_add_del, (void *) &err_check);
474 475
475 client = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, 476 client = ecore_con_server_connect(ECORE_CON_REMOTE_TCP,
476 "wongsub.wrongdns.lan", 1234, NULL); 477 "wongsub.wrongdns.lan", 1234, NULL);
@@ -480,6 +481,7 @@ EFL_START_TEST(ecore_test_ecore_con_dns)
480 ecore_main_loop_begin(); 481 ecore_main_loop_begin();
481 fail_if (err_check != EINA_FALSE); 482 fail_if (err_check != EINA_FALSE);
482 fail_if (ecore_event_handler_del(e_err) != (void *) &err_check); 483 fail_if (ecore_event_handler_del(e_err) != (void *) &err_check);
484 fail_if (ecore_event_handler_del(e_del) != (void *) &err_check);
483 fail_if (ecore_event_handler_del(e_add) != (void *) &err_check); 485 fail_if (ecore_event_handler_del(e_add) != (void *) &err_check);
484} 486}
485EFL_END_TEST 487EFL_END_TEST