aboutsummaryrefslogtreecommitdiff
path: root/src/tests/utests
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-03-02 23:12:55 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-03-02 23:12:55 +0100
commit0d47724c5f6201fdc7679327ad4a132c708b8042 (patch)
treef77f59ce6ab19fb84171429d27b43ea256434d54 /src/tests/utests
parent3a0f4dd13912a3661b969c9fc516947a0113d872 (diff)
downloadkogata-0d47724c5f6201fdc7679327ad4a132c708b8042.tar.gz
kogata-0d47724c5f6201fdc7679327ad4a132c708b8042.zip
Fix tests
Diffstat (limited to 'src/tests/utests')
-rw-r--r--src/tests/utests/fs1/test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/utests/fs1/test.c b/src/tests/utests/fs1/test.c
index 7d6afd6..bab4d07 100644
--- a/src/tests/utests/fs1/test.c
+++ b/src/tests/utests/fs1/test.c
@@ -12,7 +12,8 @@ int main(int argc, char **argv) {
dbg_printf("openned /: %d\n", f);
ASSERT(f != 0);
dirent_t x;
- while (readdir(f, &x)) {
+ size_t ent_no = 0;
+ while (readdir(f, ent_no++, &x)) {
dbg_printf("- '%s' %p %d\n", x.name, x.st.type, x.st.size);
if (x.st.type == FT_REGULAR) {
char buf[256];