mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-15 11:52:15 +02:00
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.
This commit is contained in:
@@ -60,7 +60,7 @@ struct dirent *readdir (DIR *dirp)
|
||||
if (! (d = real_readdir (dirp)))
|
||||
{
|
||||
fprintf (stderr, "Failed to get dirent\n");
|
||||
errno = ENOENT;
|
||||
errno = EIO;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ struct dirent *readdir (DIR *dirp)
|
||||
};
|
||||
|
||||
/* Fail. */
|
||||
errno = ENOENT;
|
||||
errno = EIO;
|
||||
return NULL;
|
||||
}
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user