From: Pádraig Brady
Date: Tue, 17 Feb 2026 22:58:29 +0000 (+0000)
Subject: tests: use system ENOTEMPTY message
X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f3a601fbb199a0ba087583394708c1e57ec13d6;p=thirdparty%2Fcoreutils.git
tests: use system ENOTEMPTY message
* tests/mv/dir2dir.sh: Map system specific messages.
* tests/rm/d-2.sh: Likewise.
---
diff --git a/tests/mv/dir2dir.sh b/tests/mv/dir2dir.sh
index 5dabc560f2..574e58acc3 100755
--- a/tests/mv/dir2dir.sh
+++ b/tests/mv/dir2dir.sh
@@ -19,6 +19,7 @@
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ mv
+getlimits_
mkdir -p a/t b/t || framework_failure_
touch a/t/f || framework_failure_
@@ -29,12 +30,11 @@ touch a/t/f || framework_failure_
# diagnostic about moving one directory to a subdirectory of itself.
mv b/t a 2> out && fail=1
-# Accept any of these: EEXIST, ENOTEMPTY, EBUSY.
-sed 's/: File exists/: Directory not empty/'