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:
@@ -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; }
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user