]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: install: avoid failure on FreeBSD/macOS
authorPádraig Brady <P@draigBrady.com>
Wed, 3 Jun 2026 11:11:01 +0000 (12:11 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 3 Jun 2026 11:12:33 +0000 (12:12 +0100)
* tests/install/stdin.sh: Avoid inode correlation issue discussed at
https://lists.gnu.org/r/coreutils/2026-06/msg00004.html

tests/install/stdin.sh

index 4ee8a85c9b2e8002fdf978a000ac1a4c8adf3176..2e050059eb76d0e0ec97ce9573ef827338fe9964 100755 (executable)
@@ -26,6 +26,11 @@ tty=$(readlink -f /dev/stdin)
 test -r "$tty" 2>&1 \
   || skip_ '/dev/stdin is not readable'
 
+# work around FreeBSD / macOS issue as discussed at:
+# https://lists.gnu.org/r/coreutils/2026-06/msg00004.html
+test $(stat -L -c%i /dev/stdin) = $(stat -L -c%i - </dev/stdin) ||
+  skip_ '/dev/stdin inode correlation mismatch'
+
 echo a >a || framework_failure_
 echo b >b || framework_failure_