summaryrefslogtreecommitdiffstats
path: root/testsuites/fstests/fsjffs2gc01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/fstests/fsjffs2gc01/init.c')
-rw-r--r--testsuites/fstests/fsjffs2gc01/init.c8
1 files changed, 8 insertions, 0 deletions
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);