summaryrefslogtreecommitdiffstats
path: root/testsuites/fstests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-12-20 08:23:49 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-12-20 08:28:23 +0100
commitab834d65e4a96bb59901f4349857ffe3e57a3f54 (patch)
treeaef400bbba99f58d28ee19b8ffee0ed31b6cbbc8 /testsuites/fstests
parentJFFS2: Add RTEMS_JFFS2_FORCE_GARBAGE_COLLECTION (diff)
downloadrtems-ab834d65e4a96bb59901f4349857ffe3e57a3f54.tar.bz2
JFFS2: RTEMS_JFFS2_ON_DEMAND_GARBAGE_COLLECTION
Update #2844.
Diffstat (limited to 'testsuites/fstests')
-rw-r--r--testsuites/fstests/fsjffs2gc01/init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuites/fstests/fsjffs2gc01/init.c b/testsuites/fstests/fsjffs2gc01/init.c
index 8b5658c594..329f734d8f 100644
--- a/testsuites/fstests/fsjffs2gc01/init.c
+++ b/testsuites/fstests/fsjffs2gc01/init.c
@@ -279,7 +279,11 @@ void test(void)
remove_some_files();
ASSERT_INFO(&info, &info_some_files_removed);
- rv = ioctl(fd, RTEMS_JFFS2_FORCE_GARBAGE_COLLECTION);
+ rv = ioctl(fd, RTEMS_JFFS2_ON_DEMAND_GARBAGE_COLLECTION);
+ rtems_test_assert(rv == 0);
+ ASSERT_INFO(&info, &info_after_first_gc);
+
+ rv = ioctl(fd, RTEMS_JFFS2_ON_DEMAND_GARBAGE_COLLECTION);
rtems_test_assert(rv == 0);
ASSERT_INFO(&info, &info_after_first_gc);