On 24/03/2024 16:26, Bruno Haible wrote:
The mv/mv-exchange test fails on:
   - NetBSD 9.3
   - OpenBSD 7.4
   - AIX 7.1
   - AIX 7.3.1

The attached should fix the issue with this new test.

thanks for all the testing!
Pádraig
From c45fcb2ed2d80df5e7dea3c52eba24a9676d9eae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <p...@draigbrady.com>
Date: Sun, 24 Mar 2024 18:30:54 +0000
Subject: [PATCH] tests: avoid false failure on new mv --exchange test

* tests/mv/mv-exchange.sh: Canonicalize different
"operation not supported" messages, so we can ignore correctly.
Reported by Bruno Haible on AIX, NetBSD, and OpenBSD.
---
 tests/mv/mv-exchange.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/mv/mv-exchange.sh b/tests/mv/mv-exchange.sh
index 35e3392cb..98b9afa77 100755
--- a/tests/mv/mv-exchange.sh
+++ b/tests/mv/mv-exchange.sh
@@ -23,7 +23,10 @@ print_ver_ mv
 # Test exchanging files.
 touch a || framework_failure_
 mkdir b || framework_failure_
-if ! mv -T --exchange a b 2>exchange_err; then
+if ! mv -T --exchange a b 2>errt; then
+  # AIX gives "Unsupported attribute value" (errno 124)
+  # NetBSD and OpenBSD give "Not supported"
+  sed 's/Not /not /; s/[Uu]nsupported/not supported/' < errt > exchange_err
   grep 'not supported' exchange_err || { cat exchange_err; fail=1; }
 else
   test -d a || fail=1
-- 
2.44.0

Reply via email to