diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-11 20:47:04 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-11 20:47:04 +0100 |
commit | 55e9614a6358fb3270405332e94c2eeda057350b (patch) | |
tree | 107d30ee39bef6933c51959b3333d80a0388c575 /src/tests/utests/fs2/test.c | |
parent | 50b5427a8edbb8d59215334f5a250e7f8d6d7ca7 (diff) | |
download | kogata-55e9614a6358fb3270405332e94c2eeda057350b.tar.gz kogata-55e9614a6358fb3270405332e94c2eeda057350b.zip |
Include kernel.map in tests.
Diffstat (limited to 'src/tests/utests/fs2/test.c')
-rw-r--r-- | src/tests/utests/fs2/test.c | 8 |
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); |