1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/pkg_littlefs*: align test with documentation

This commit is contained in:
Benjamin Valentin 2022-02-08 10:10:17 +01:00
parent 6a361795ee
commit 79d342a576
2 changed files with 6 additions and 6 deletions

View File

@ -288,8 +288,8 @@ static void tests_littlefs_readdir(void)
int nb_files = 0; int nb_files = 0;
do { do {
res = vfs_readdir(&dirp, &entry); res = vfs_readdir(&dirp, &entry);
if (res == 1 && (strcmp("/test0.txt", &(entry.d_name[0])) == 0 || if (res == 1 && (strcmp("test0.txt", &(entry.d_name[0])) == 0 ||
strcmp("/test1.txt", &(entry.d_name[0])) == 0)) { strcmp("test1.txt", &(entry.d_name[0])) == 0)) {
nb_files++; nb_files++;
} }
} while (res == 1); } while (res == 1);
@ -305,7 +305,7 @@ static void tests_littlefs_readdir(void)
nb_files = 0; nb_files = 0;
do { do {
res = vfs_readdir(&dirp, &entry); res = vfs_readdir(&dirp, &entry);
if (res == 1 && strcmp("/test2.txt", &(entry.d_name[0])) == 0) { if (res == 1 && strcmp("test2.txt", &(entry.d_name[0])) == 0) {
nb_files++; nb_files++;
} }
} while (res == 1); } while (res == 1);

View File

@ -288,8 +288,8 @@ static void tests_littlefs_readdir(void)
int nb_files = 0; int nb_files = 0;
do { do {
res = vfs_readdir(&dirp, &entry); res = vfs_readdir(&dirp, &entry);
if (res == 1 && (strcmp("/test0.txt", &(entry.d_name[0])) == 0 || if (res == 1 && (strcmp("test0.txt", &(entry.d_name[0])) == 0 ||
strcmp("/test1.txt", &(entry.d_name[0])) == 0)) { strcmp("test1.txt", &(entry.d_name[0])) == 0)) {
nb_files++; nb_files++;
} }
} while (res == 1); } while (res == 1);
@ -305,7 +305,7 @@ static void tests_littlefs_readdir(void)
nb_files = 0; nb_files = 0;
do { do {
res = vfs_readdir(&dirp, &entry); res = vfs_readdir(&dirp, &entry);
if (res == 1 && strcmp("/test2.txt", &(entry.d_name[0])) == 0) { if (res == 1 && strcmp("test2.txt", &(entry.d_name[0])) == 0) {
nb_files++; nb_files++;
} }
} while (res == 1); } while (res == 1);