Skip to content

Commit 9c068da

Browse files
committed
tests: avoid false failure with replaced readdir
* tests/rm/rm-readdir-fail.sh: Simulate EIO rather than ENOENT, as gnulib absorbs the latter since commit 5a2d28df.
1 parent 039c355 commit 9c068da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/rm/rm-readdir-fail.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct dirent *readdir (DIR *dirp)
6060
if (! (d = real_readdir (dirp)))
6161
{
6262
fprintf (stderr, "Failed to get dirent\n");
63-
errno = ENOENT;
63+
errno = EIO;
6464
return NULL;
6565
}
6666
@@ -83,7 +83,7 @@ struct dirent *readdir (DIR *dirp)
8383
};
8484
8585
/* Fail. */
86-
errno = ENOENT;
86+
errno = EIO;
8787
return NULL;
8888
}
8989
EOF

0 commit comments

Comments
 (0)