diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-06 09:05:30 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-06 09:06:20 +0100 |
commit | d71542c8bef50261bc3904ef6a17f0b6087d04d9 (patch) | |
tree | 098422a270134d6cdefa3198deb399157ae83bd8 /testsuites/fstests/fsjffs2gc01 | |
parent | tests: Use simple console driver (diff) | |
download | rtems-d71542c8bef50261bc3904ef6a17f0b6087d04d9.tar.bz2 |
fsjffs2gc01: Fix sporadic test failures
Diffstat (limited to 'testsuites/fstests/fsjffs2gc01')
-rw-r--r-- | testsuites/fstests/fsjffs2gc01/init.c | 8 |
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); |