summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tests/ecore_con/ecore_con_test_ecore_con.c2
-rw-r--r--src/tests/ecore_con/ecore_con_test_ecore_con_eet.c18
-rw-r--r--src/tests/ecore_con/ecore_con_test_ecore_con_url.c8
-rw-r--r--src/tests/eina/eina_test_quaternion.c1
4 files changed, 14 insertions, 15 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 dc31d8e..67f3672 100644
--- a/src/tests/ecore_con/ecore_con_test_ecore_con.c
+++ b/src/tests/ecore_con/ecore_con_test_ecore_con.c
@@ -102,7 +102,7 @@ _del(void *data , int type EINA_UNUSED, void *ev)
102 102
103 printf("Lost server with ip %s!\n", 103 printf("Lost server with ip %s!\n",
104 ecore_con_server_ip_get(event->server)); 104 ecore_con_server_ip_get(event->server));
105 fail_unless(ecore_con_server_ip_get(event->server)); 105 fail_if(!ecore_con_server_ip_get(event->server));
106 106
107 ecore_con_server_del(event->server); 107 ecore_con_server_del(event->server);
108 } 108 }
diff --git a/src/tests/ecore_con/ecore_con_test_ecore_con_eet.c b/src/tests/ecore_con/ecore_con_test_ecore_con_eet.c
index 5d45c34..932c32a 100644
--- a/src/tests/ecore_con/ecore_con_test_ecore_con_eet.c
+++ b/src/tests/ecore_con/ecore_con_test_ecore_con_eet.c
@@ -56,7 +56,7 @@ _eet_client_cnct_cb(void *data EINA_UNUSED, Ecore_Con_Reply *reply, Ecore_Con_Cl
56{ 56{
57 const char *ec_eet_data; 57 const char *ec_eet_data;
58 Ecore_Con_Eet *ec_eet = ecore_con_eet_reply(reply); 58 Ecore_Con_Eet *ec_eet = ecore_con_eet_reply(reply);
59 fail_unless(ec_eet); 59 fail_if(!ec_eet);
60 60
61 ec_eet_data = ecore_con_eet_data_get(ec_eet); 61 ec_eet_data = ecore_con_eet_data_get(ec_eet);
62 fail_if(strcmp(ec_eet_data, eet_data)); 62 fail_if(strcmp(ec_eet_data, eet_data));
@@ -126,10 +126,10 @@ START_TEST(ecore_con_test_ecore_con_eet_svr_cl)
126 126
127 svr = ecore_con_server_add(ECORE_CON_REMOTE_TCP, "127.0.0.1", 127 svr = ecore_con_server_add(ECORE_CON_REMOTE_TCP, "127.0.0.1",
128 8080, NULL); 128 8080, NULL);
129 fail_unless(svr); 129 fail_if(!svr);
130 130
131 ece_svr = ecore_con_eet_server_new(svr); 131 ece_svr = ecore_con_eet_server_new(svr);
132 fail_unless(ece_svr); 132 fail_if(!ece_svr);
133 133
134 ecore_con_eet_data_set(ece_svr, eet_data); 134 ecore_con_eet_data_set(ece_svr, eet_data);
135 135
@@ -143,10 +143,10 @@ START_TEST(ecore_con_test_ecore_con_eet_svr_cl)
143 143
144 cl = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, "127.0.0.1", 144 cl = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, "127.0.0.1",
145 8080, NULL); 145 8080, NULL);
146 fail_unless (cl); 146 fail_if(!cl);
147 147
148 ece_cl = ecore_con_eet_client_new(cl); 148 ece_cl = ecore_con_eet_client_new(cl);
149 fail_unless (ece_cl); 149 fail_if(!ece_cl);
150 150
151 ecore_con_eet_register(ece_cl, TEST_STREAM, _ece_test_descriptor); 151 ecore_con_eet_register(ece_cl, TEST_STREAM, _ece_test_descriptor);
152 ecore_con_eet_raw_data_callback_add(ece_cl, TEST_STREAM, 152 ecore_con_eet_raw_data_callback_add(ece_cl, TEST_STREAM,
@@ -210,10 +210,10 @@ START_TEST(ecore_con_test_ecore_con_eet_svr_del)
210 210
211 svr = ecore_con_server_add(ECORE_CON_REMOTE_TCP, "127.0.0.1", 211 svr = ecore_con_server_add(ECORE_CON_REMOTE_TCP, "127.0.0.1",
212 8080, NULL); 212 8080, NULL);
213 fail_unless(svr); 213 fail_if(!svr);
214 214
215 ece_svr = ecore_con_eet_server_new(svr); 215 ece_svr = ecore_con_eet_server_new(svr);
216 fail_unless(ece_svr); 216 fail_if(!ece_svr);
217 217
218 ecore_con_eet_data_set(ece_svr, eet_data); 218 ecore_con_eet_data_set(ece_svr, eet_data);
219 219
@@ -223,10 +223,10 @@ START_TEST(ecore_con_test_ecore_con_eet_svr_del)
223 223
224 cl = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, "127.0.0.1", 224 cl = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, "127.0.0.1",
225 8080, NULL); 225 8080, NULL);
226 fail_unless (cl); 226 fail_if(!cl);
227 227
228 ece_cl = ecore_con_eet_client_new(cl); 228 ece_cl = ecore_con_eet_client_new(cl);
229 fail_unless (ece_cl); 229 fail_if(!ece_cl);
230 230
231 ecore_con_eet_register(ece_cl, TEST_STREAM, _ece_test_descriptor); 231 ecore_con_eet_register(ece_cl, TEST_STREAM, _ece_test_descriptor);
232 ecore_con_eet_server_connect_callback_add(ece_cl, _eet_svr_cnct_cb, 232 ecore_con_eet_server_connect_callback_add(ece_cl, _eet_svr_cnct_cb,
diff --git a/src/tests/ecore_con/ecore_con_test_ecore_con_url.c b/src/tests/ecore_con/ecore_con_test_ecore_con_url.c
index ec27523..d8b7ab1 100644
--- a/src/tests/ecore_con/ecore_con_test_ecore_con_url.c
+++ b/src/tests/ecore_con/ecore_con_test_ecore_con_url.c
@@ -180,7 +180,7 @@ START_TEST(ecore_con_test_ecore_con_url_ftp_upload)
180 fprintf(stderr, "directory = %s\n", dir); 180 fprintf(stderr, "directory = %s\n", dir);
181 181
182 ec_url = ecore_con_url_new(link); 182 ec_url = ecore_con_url_new(link);
183 fail_unless (ec_url); 183 fail_if(!ec_url);
184 184
185 ecore_con_url_verbose_set(ec_url, EINA_TRUE); 185 ecore_con_url_verbose_set(ec_url, EINA_TRUE);
186 ecore_con_url_ftp_use_epsv_set(ec_url, EINA_TRUE); 186 ecore_con_url_ftp_use_epsv_set(ec_url, EINA_TRUE);
@@ -259,7 +259,7 @@ START_TEST(ecore_con_test_ecore_con_url_download)
259 fail_if(ret != 1); 259 fail_if(ret != 1);
260 260
261 url = ecore_con_url_new(link); 261 url = ecore_con_url_new(link);
262 fail_unless (url); 262 fail_if(!url);
263 263
264 ecore_con_url_verbose_set(url, EINA_TRUE); 264 ecore_con_url_verbose_set(url, EINA_TRUE);
265 265
@@ -332,7 +332,7 @@ _url_cookies_compl_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_
332 332
333 headers = ecore_con_url_response_headers_get(url_complete->url_con); 333 headers = ecore_con_url_response_headers_get(url_complete->url_con);
334 334
335 fail_unless(headers); 335 fail_if(!headers);
336 336
337 printf("response headers:\n"); 337 printf("response headers:\n");
338 EINA_LIST_FOREACH(headers, l, str) 338 EINA_LIST_FOREACH(headers, l, str)
@@ -360,7 +360,7 @@ _ecore_con_url_cookies_test_init()
360 ecore_con_url_init(); 360 ecore_con_url_init();
361 361
362 ec_url = ecore_con_url_new(link); 362 ec_url = ecore_con_url_new(link);
363 fail_unless(ec_url); 363 fail_if(!ec_url);
364 364
365 ecore_event_handler_add(ECORE_CON_EVENT_URL_COMPLETE, 365 ecore_event_handler_add(ECORE_CON_EVENT_URL_COMPLETE,
366 _url_cookies_compl_cb, NULL); 366 _url_cookies_compl_cb, NULL);
diff --git a/src/tests/eina/eina_test_quaternion.c b/src/tests/eina/eina_test_quaternion.c
index 9759355..dd704d5 100644
--- a/src/tests/eina/eina_test_quaternion.c
+++ b/src/tests/eina/eina_test_quaternion.c
@@ -95,7 +95,6 @@ START_TEST(eina_test_quaternion_matrix)
95 116, -147, 104, 95 116, -147, 104,
96 88, 76, -259 96 88, 76, -259
97 }; 97 };
98 Eina_Quaternion tq;
99 Eina_Matrix3 tm; 98 Eina_Matrix3 tm;
100 99
101 eina_init(); 100 eina_init();