tests: remove warnings.

This commit is contained in:
Cedric BAIL 2014-03-06 14:24:25 +09:00
parent 71f296e171
commit 563ea6a01c
3 changed files with 7 additions and 6 deletions

View File

@ -79,7 +79,8 @@ START_TEST(edje_test_simple_layout_geometry)
int x, y, w, h;
int r, g, b, a;
Evas *evas = EDJE_TEST_INIT_EVAS();
Evas_Object *obj, *bg;
Evas_Object *obj;
const Evas_Object *bg;
obj = edje_object_add(evas);
fail_unless(edje_object_file_set(obj, test_layout_get("test_layout.edj"), "test_group"));

View File

@ -134,12 +134,12 @@ START_TEST(binbuf_manage_read_only_simple)
eina_init();
buf = eina_binbuf_manage_read_only_new_length(_cbuf, size);
buf = eina_binbuf_manage_read_only_new_length(cbuf, size);
fail_if(!buf);
eina_binbuf_free(buf);
buf = eina_binbuf_manage_read_only_new_length(_cbuf, size);
buf = eina_binbuf_manage_read_only_new_length(cbuf, size);
fail_if(!buf);
fail_if(eina_binbuf_string_get(buf) != cbuf);

View File

@ -320,12 +320,12 @@ START_TEST(eina_file_map_new_test)
fd = open(test_file_path, O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR);
fail_if(fd == 0);
write(fd, eina_map_test_string, strlen(eina_map_test_string));
fail_if(write(fd, eina_map_test_string, strlen(eina_map_test_string)) != (ssize_t) strlen(eina_map_test_string));
close(fd);
fd = open(test_file2_path, O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR);
fail_if(fd == 0);
write(fd, big_buffer, big_buffer_size - file_min_offset);
fail_if(fd == 0);
fail_if(write(fd, big_buffer, big_buffer_size - file_min_offset) != big_buffer_size - file_min_offset);
close(fd);
e_file = eina_file_open(test_file_path, EINA_FALSE);