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:
parent
6a361795ee
commit
79d342a576
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user