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"));
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);
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);