mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
testsuites/jffs2: Add test for empty NOR FS
This adds a test to very that remounting a completely used, but empty NOR JFFS2 filesystem is possible. Previously, this triggered an edge condition in the JFFS2 scan code that prevented remount of a correctly formed and uncorrupted filesystem.
This commit is contained in:
1 parent
e3972d71ef
commit
cd12bf025d
5 files changed
+285
No files matched your search
@@ -0,0 +1,21 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
build-type: test-program
|
||||
cflags: []
|
||||
copyrights:
|
||||
- Copyright (C) 2020 embedded brains GmbH & Co. KG
|
||||
cppflags: []
|
||||
cxxflags: []
|
||||
enabled-by: true
|
||||
features: c cprogram
|
||||
includes:
|
||||
- testsuites/fstests/jffs2_support
|
||||
ldflags: []
|
||||
links: []
|
||||
source:
|
||||
- testsuites/fstests/fsjffs2empty01/init.c
|
||||
stlib: []
|
||||
target: testsuites/fstests/fsjffs2empty01.exe
|
||||
type: build
|
||||
use-after: []
|
||||
use-before:
|
||||
- jffs2
|
||||
@@ -51,6 +51,8 @@ links:
|
||||
uid: fsimfsconfig03
|
||||
- role: build-dependency
|
||||
uid: fsimfsgeneric01
|
||||
- role: build-dependency
|
||||
uid: fsjffs2empty01
|
||||
- role: build-dependency
|
||||
uid: fsjffs2gc01
|
||||
- role: build-dependency
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
This file describes the directives and concepts tested by this test set.
|
||||
|
||||
test set name: fsjffs2empty01
|
||||
|
||||
directives:
|
||||
|
||||
- JFFS2 implementation
|
||||
|
||||
concepts:
|
||||
|
||||
- Ensure that the JFFS2 library can remount a filesystem where every block has been written to and all files have been deleted.
|
||||
@@ -0,0 +1,6 @@
|
||||
*** BEGIN OF TEST FSJFFS2EMPTY 1 ***
|
||||
Initializing filesystem JFFS2
|
||||
|
||||
|
||||
Shutting down filesystem JFFS2
|
||||
*** END OF TEST FSJFFS2EMPTY 1 ***
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user