Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
test_ipc_fs: fix if statement bug and show error code we're returning…
Browse files Browse the repository at this point in the history
… with
  • Loading branch information
misson20000 committed Mar 5, 2018
1 parent b1cff89 commit 0fb9b11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_ipc_fs.c
Expand Up @@ -27,9 +27,10 @@ int main() {
uint64_t out_entries;
for (int it = 0; it < 100; it++) {
ASSERT_OK(fail_dir, idirectory_read(root_dir, &out_entries, &entry, 1 * sizeof(idirectoryentry_t)));
if (out_entries == 0);
break;
printf("Out entries = %lu\n", out_entries);
if (out_entries == 0) {
break;
}
printf("%.*s\n", 0x300, entry.path);
}

Expand All @@ -40,5 +41,6 @@ int main() {
fail_fsp:
fsp_srv_finalize();
fail:
printf("exiting with 0x%x\n", r);
return r != RESULT_OK;
}

0 comments on commit 0fb9b11

Please sign in to comment.