Browse Source

test_lwext4: add error printf when file/dir remove fails

pull/11/head
gkostka 9 years ago
parent
commit
1105a27984
  1. 16
      fs_test/common/test_lwext4.c

16
fs_test/common/test_lwext4.c

@ -289,17 +289,27 @@ void test_lwext4_cleanup(void)
long int start;
long int stop;
long int diff;
int r;
printf("\ncleanup:\n");
ext4_fremove("/mp/hello.txt");
r = ext4_fremove("/mp/hello.txt");
if (r != EOK && r != ENOENT) {
printf("ext4_fremove error: rc = %d\n", r);
}
printf("remove /mp/test1\n");
ext4_fremove("/mp/test1");
r = ext4_fremove("/mp/test1");
if (r != EOK && r != ENOENT) {
printf("ext4_fremove error: rc = %d\n", r);
}
printf("remove /mp/dir1\n");
io_timings_clear();
start = get_ms();
ext4_dir_rm("/mp/dir1");
r = ext4_dir_rm("/mp/dir1");
if (r != EOK && r != ENOENT) {
printf("ext4_fremove ext4_dir_rm: rc = %d\n", r);
}
stop = get_ms();
diff = stop - start;
printf("cleanup: time: %d ms\n", (int)diff);

Loading…
Cancel
Save