From d71542c8bef50261bc3904ef6a17f0b6087d04d9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 6 Nov 2017 09:05:30 +0100 Subject: fsjffs2gc01: Fix sporadic test failures --- testsuites/fstests/fsjffs2gc01/init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testsuites/fstests/fsjffs2gc01/init.c b/testsuites/fstests/fsjffs2gc01/init.c index 329f734d8f..0691fb7432 100644 --- a/testsuites/fstests/fsjffs2gc01/init.c +++ b/testsuites/fstests/fsjffs2gc01/init.c @@ -262,6 +262,14 @@ void test(void) init_keg(); + /* + * Ensure that jiffies != 0, to use most likely path in + * jffs2_mark_node_obsolete(). + */ + while (rtems_clock_get_ticks_since_boot() == 0) { + /* Wait */ + } + fd = open("/", O_RDONLY); rtems_test_assert(fd >= 0); -- cgit v1.2.3