[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: avoid false failure with replaced readdir
|
From: |
Pádraig Brady |
|
Subject: |
[PATCH] tests: avoid false failure with replaced readdir |
|
Date: |
Thu, 16 Jan 2025 14:58:21 +0000 |
* tests/rm/rm-readdir-fail.sh: Simulate EIO rather than ENOENT,
as gnulib absorbs the latter since commit 5a2d28df.
---
tests/rm/rm-readdir-fail.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/rm/rm-readdir-fail.sh b/tests/rm/rm-readdir-fail.sh
index 8921190d6..1c2401b65 100755
--- a/tests/rm/rm-readdir-fail.sh
+++ b/tests/rm/rm-readdir-fail.sh
@@ -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
--
2.47.1
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: avoid false failure with replaced readdir,
Pádraig Brady <=