From 55e9614a6358fb3270405332e94c2eeda057350b Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 11 Mar 2015 20:47:04 +0100 Subject: Include kernel.map in tests. --- src/tests/utests/subfs/test.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/tests/utests/subfs/test.c') diff --git a/src/tests/utests/subfs/test.c b/src/tests/utests/subfs/test.c index 2612939..5233ffe 100644 --- a/src/tests/utests/subfs/test.c +++ b/src/tests/utests/subfs/test.c @@ -16,10 +16,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); -- cgit v1.2.3