]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid ERRORs with no mntent.h
authorPádraig Brady <P@draigBrady.com>
Wed, 15 Jan 2025 16:12:49 +0000 (16:12 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Jan 2025 17:07:19 +0000 (17:07 +0000)
* tests/df/skip-duplicates.sh: Just skip this test if we fail
to build the shared lib.  This fails on Solaris 11 at least
due to no HAVE_MNTENT_H.  Note HAVE_SYS_MNTENT_H does not
suffice for this wrapper code.
* tests/df/no-mtab-status.sh: Likewise.

tests/df/no-mtab-status.sh
tests/df/skip-duplicates.sh

index 076df40b708fc1bb86510dabc9e7e380319fa05d..47105a13aef9d4625c84d15b2f4bbfea591b0d93 100755 (executable)
@@ -93,7 +93,7 @@ EOF
 
 # Then compile/link it:
 gcc_shared_ k.c k.so \
-  || framework_failure_ 'failed to build shared library'
+  || skip_ 'failed to build mntent shared library'
 
 cleanup_() { unset LD_PRELOAD; }
 
index 0539be301b0d489144877dae705a9c751a6dd4c5..644f2e027ef563b062466f56bd3f94e5324dbe07 100755 (executable)
@@ -150,7 +150,7 @@ EOF
 
 # Then compile/link it:
 gcc_shared_ k.c k.so \
-  || framework_failure_ 'failed to build shared library'
+  || skip_ 'failed to build mntent shared library'
 
 # Test if LD_PRELOAD works:
 LD_PRELOAD=$LD_PRELOAD:./k.so df