1
0
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:
Pádraig Brady
2025-01-16 14:56:22 +00:00
parent 039c355f71
commit 9c068dae76

View File

@@ -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