summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tests/edje/edje_test_edje.c3
-rw-r--r--src/tests/eina/eina_test_binbuf.c4
-rw-r--r--src/tests/eina/eina_test_file.c6
3 files changed, 7 insertions, 6 deletions
diff --git a/src/tests/edje/edje_test_edje.c b/src/tests/edje/edje_test_edje.c
index d771d5ed0e..5a2fcee1dc 100644
--- a/src/tests/edje/edje_test_edje.c
+++ b/src/tests/edje/edje_test_edje.c
@@ -79,7 +79,8 @@ START_TEST(edje_test_simple_layout_geometry)
79 int x, y, w, h; 79 int x, y, w, h;
80 int r, g, b, a; 80 int r, g, b, a;
81 Evas *evas = EDJE_TEST_INIT_EVAS(); 81 Evas *evas = EDJE_TEST_INIT_EVAS();
82 Evas_Object *obj, *bg; 82 Evas_Object *obj;
83 const Evas_Object *bg;
83 84
84 obj = edje_object_add(evas); 85 obj = edje_object_add(evas);
85 fail_unless(edje_object_file_set(obj, test_layout_get("test_layout.edj"), "test_group")); 86 fail_unless(edje_object_file_set(obj, test_layout_get("test_layout.edj"), "test_group"));
diff --git a/src/tests/eina/eina_test_binbuf.c b/src/tests/eina/eina_test_binbuf.c
index b016bc6f3c..14a2526667 100644
--- a/src/tests/eina/eina_test_binbuf.c
+++ b/src/tests/eina/eina_test_binbuf.c
@@ -134,12 +134,12 @@ START_TEST(binbuf_manage_read_only_simple)
134 134
135 eina_init(); 135 eina_init();
136 136
137 buf = eina_binbuf_manage_read_only_new_length(_cbuf, size); 137 buf = eina_binbuf_manage_read_only_new_length(cbuf, size);
138 fail_if(!buf); 138 fail_if(!buf);
139 139
140 eina_binbuf_free(buf); 140 eina_binbuf_free(buf);
141 141
142 buf = eina_binbuf_manage_read_only_new_length(_cbuf, size); 142 buf = eina_binbuf_manage_read_only_new_length(cbuf, size);
143 fail_if(!buf); 143 fail_if(!buf);
144 144
145 fail_if(eina_binbuf_string_get(buf) != cbuf); 145 fail_if(eina_binbuf_string_get(buf) != cbuf);
diff --git a/src/tests/eina/eina_test_file.c b/src/tests/eina/eina_test_file.c
index e8f735d3f0..17518bd512 100644
--- a/src/tests/eina/eina_test_file.c
+++ b/src/tests/eina/eina_test_file.c
@@ -320,12 +320,12 @@ START_TEST(eina_file_map_new_test)
320 320
321 fd = open(test_file_path, O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR); 321 fd = open(test_file_path, O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR);
322 fail_if(fd == 0); 322 fail_if(fd == 0);
323 write(fd, eina_map_test_string, strlen(eina_map_test_string)); 323 fail_if(write(fd, eina_map_test_string, strlen(eina_map_test_string)) != (ssize_t) strlen(eina_map_test_string));
324 close(fd); 324 close(fd);
325 325
326 fd = open(test_file2_path, O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR); 326 fd = open(test_file2_path, O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR);
327 fail_if(fd == 0); 327 fail_if(fd == 0);
328 write(fd, big_buffer, big_buffer_size - file_min_offset); 328 fail_if(write(fd, big_buffer, big_buffer_size - file_min_offset) != big_buffer_size - file_min_offset);
329 close(fd); 329 close(fd);
330 330
331 e_file = eina_file_open(test_file_path, EINA_FALSE); 331 e_file = eina_file_open(test_file_path, EINA_FALSE);