* tests/stat/stat-mount.sh: LeakSanitizer requires /proc access
for instrumented binaries, so ensure we're checking coreutils
binaries, rather than shell builtins.
---
tests/stat/stat-mount.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/stat/stat-mount.sh b/tests/stat/stat-mount.sh
index 1a3d21996..356905e38 100755
--- a/tests/stat/stat-mount.sh
+++ b/tests/stat/stat-mount.sh
@@ -29,11 +29,15 @@ esac
hide_proc() {
unshare -rm $SHELL -c 'mount -t tmpfs tmpfs /proc && "$@"' -- "$@"
}
-if hide_proc true; then
+if hide_proc env true; then
hide_proc mount; ret=$?
if test "$ret" = 2; then # Avoid segfaults under unshare on Guix
hide_proc stat -c '0%#a' / || fail=1
+ else
+ skip_ 'unexpected mount(1) failure with hidden /proc'
fi
+else
+ skip_ 'failed to hide /proc with unshare(1)'
fi
Exit $fail
--
2.55.0