summaryrefslogtreecommitdiff
path: root/src/tests/ecore_con
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-07-03 12:44:13 -0400
committerChris Michael <cp.michael@samsung.com>2018-07-03 12:44:13 -0400
commit3c8bc31e75478137c08ea9492c685cb4261a9499 (patch)
tree682a984a24d8cc41789d84df4ecc46731bf28d52 /src/tests/ecore_con
parent683cddf90c8b32df5735d539ad812ef47cb67cbe (diff)
tests/ecore-con: fix dns test to use correct ordering
Summary: it's unclear to me why this test was implemented with the expected event ordering of SERVER_DEL -> SERVER_ERROR; going as far back as efl 1.7, the behavior has always been ERROR -> DEL this fixes the test to verify the expected event ordering on a dns resolve failure Depends on D6481 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6482
Diffstat (limited to 'src/tests/ecore_con')
-rw-r--r--src/tests/ecore_con/ecore_con_test_ecore_con.c3
1 files changed, 1 insertions, 2 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 86323a4..81eb079 100644
--- a/src/tests/ecore_con/ecore_con_test_ecore_con.c
+++ b/src/tests/ecore_con/ecore_con_test_ecore_con.c
@@ -182,7 +182,6 @@ _dns_err(void *data, int type EINA_UNUSED, void *ev EINA_UNUSED)
182{ 182{
183 Eina_Bool *err_check = data; 183 Eina_Bool *err_check = data;
184 *err_check = EINA_TRUE; 184 *err_check = EINA_TRUE;
185 ecore_main_loop_quit();
186 return ECORE_CALLBACK_RENEW; 185 return ECORE_CALLBACK_RENEW;
187} 186}
188 187
@@ -479,7 +478,7 @@ EFL_START_TEST(ecore_test_ecore_con_dns)
479 ecore_con_server_timeout_set(client, 5.0); 478 ecore_con_server_timeout_set(client, 5.0);
480 479
481 ecore_main_loop_begin(); 480 ecore_main_loop_begin();
482 fail_if (err_check == EINA_FALSE); 481 fail_if (err_check != EINA_FALSE);
483 fail_if (ecore_event_handler_del(e_err) != (void *) &err_check); 482 fail_if (ecore_event_handler_del(e_err) != (void *) &err_check);
484 fail_if (ecore_event_handler_del(e_add) != (void *) &err_check); 483 fail_if (ecore_event_handler_del(e_add) != (void *) &err_check);
485} 484}