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>2018-02-04 23:36:36 +0300
committerChristopher Haster <chaster@utexas.edu>2018-02-04 23:36:36 +0300
commita25743a82a5a3c074e492aeba912373ef2e74288 (patch)
treea81635772a9418dac96715559f4daf165780d26b /tests
parent6716b5580af841c379edbdd1ba2a558ebce0cb58 (diff)
Fixed some minor error code differences
- Write on read-only file to return LFS_ERR_BADF - Renaming directory onto file to return LFS_ERR_NOTEMPTY - Changed LFS_ERR_INVAL in lfs_file_seek to assert
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_dirs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_dirs.sh b/tests/test_dirs.sh
index 197d0f5..9f9733d 100755
--- a/tests/test_dirs.sh
+++ b/tests/test_dirs.sh
@@ -220,7 +220,7 @@ tests/test.py << TEST
lfs_mount(&lfs, &cfg) => 0;
lfs_mkdir(&lfs, "warmpotato") => 0;
lfs_mkdir(&lfs, "warmpotato/mushy") => 0;
- lfs_rename(&lfs, "hotpotato", "warmpotato") => LFS_ERR_INVAL;
+ lfs_rename(&lfs, "hotpotato", "warmpotato") => LFS_ERR_NOTEMPTY;
lfs_remove(&lfs, "warmpotato/mushy") => 0;
lfs_rename(&lfs, "hotpotato", "warmpotato") => 0;