aboutsummaryrefslogtreecommitdiff
path: root/src/tests/utests/fs2/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/utests/fs2/test.c')
-rw-r--r--src/tests/utests/fs2/test.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tests/utests/fs2/test.c b/src/tests/utests/fs2/test.c
index f993c8e..7cc5fb6 100644
--- a/src/tests/utests/fs2/test.c
+++ b/src/tests/utests/fs2/test.c
@@ -14,10 +14,12 @@ int main(int argc, char **argv) {
dirent_t x;
size_t ent_no = 0;
- ASSERT (readdir(f, ent_no++, &x));
+ while (ent_no < 2) {
+ ASSERT (readdir(f, ent_no++, &x));
- ASSERT(!strcmp(x.name, "init.bin"));
- ASSERT(x.st.type == FT_REGULAR);
+ ASSERT((!strcmp(x.name, "init.bin")) || (!strcmp(x.name, "kernel.map")));
+ ASSERT(x.st.type == FT_REGULAR);
+ }
ASSERT(!readdir(f, ent_no++, &x));
close(f);