From: Pádraig Brady Date: Wed, 15 Jan 2025 16:12:49 +0000 (+0000) Subject: tests: avoid ERRORs with no mntent.h X-Git-Tag: v9.6~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c56890470e377238e50a18b7904bd3770a39fc50;p=thirdparty%2Fcoreutils.git tests: avoid ERRORs with no mntent.h * 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. --- diff --git a/tests/df/no-mtab-status.sh b/tests/df/no-mtab-status.sh index 076df40b70..47105a13ae 100755 --- a/tests/df/no-mtab-status.sh +++ b/tests/df/no-mtab-status.sh @@ -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; } diff --git a/tests/df/skip-duplicates.sh b/tests/df/skip-duplicates.sh index 0539be301b..644f2e027e 100755 --- a/tests/df/skip-duplicates.sh +++ b/tests/df/skip-duplicates.sh @@ -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