1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-11 18:02:13 +02:00

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.
This commit is contained in:
Pádraig Brady
2025-01-15 16:12:49 +00:00
parent 4bb1fc2445
commit c56890470e
2 changed files with 2 additions and 2 deletions

View File

@@ -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; }

View File

@@ -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