Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2017-04-18 06:27:06 +0300
committerChristopher Haster <chaster@utexas.edu>2017-04-18 09:44:01 +0300
commit3b9d6630c8fab475307d95824c368d45cd6ba41a (patch)
tree37171913465bb1f753e8b6469f6f7b695df0795c /tests
parentbd817abb00080898357385b5d358418d3072789d (diff)
Restructured directory code
After quite a bit of prototyping, settled on the following functions: - lfs_dir_alloc - create a new dir - lfs_dir_fetch - load and check a dir pair from disk - lfs_dir_commit - save a dir pair to disk - lfs_dir_shift - shrink a dir pair to disk - lfs_dir_append - add a dir entry, creating dirs if needed - lfs_dir_remove - remove a dir entry, dropping dirs if needed Additionally, followed through with a few other tweaks
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_format.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_format.sh b/tests/test_format.sh
index 1e12885..0b53dc5 100755
--- a/tests/test_format.sh
+++ b/tests/test_format.sh
@@ -11,13 +11,17 @@ TEST
echo "--- Invalid superblocks ---"
ln -f -s /dev/null blocks/0
+ln -f -s /dev/null blocks/1
tests/test.py << TEST
lfs_format(&lfs, &config) => LFS_ERROR_CORRUPT;
TEST
-rm blocks/0
+rm blocks/0 blocks/1
echo "--- Basic mounting ---"
tests/test.py << TEST
+ lfs_format(&lfs, &config) => 0;
+TEST
+tests/test.py << TEST
lfs_mount(&lfs, &config) => 0;
lfs_unmount(&lfs) => 0;
TEST