summaryrefslogtreecommitdiff
path: root/tests/df
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-08-18 09:46:39 -0700
committerJim Meyering <meyering@redhat.com>2012-08-19 22:31:39 +0200
commitaa1ec87f5261f60e2401aa38608440883648a21b (patch)
tree8f7e26d9098db4584bb188b67472a6ec5ebc1a0c /tests/df
parente44943a25e4a225568b51a411f18ba61134d3eb3 (diff)
downloadcoreutils-aa1ec87f5261f60e2401aa38608440883648a21b.tar.xz
tests: port df/no-mtab-status to Solaris
* tests/df/no-mtab-status: Include <mntent.h> in test program, so that the getmntent hack compilation fails on Solaris, as it should, since it's not compatible with Solaris. Reported by Stefano Lattarini in <http://bugs.gnu.org/12225>.
Diffstat (limited to 'tests/df')
-rwxr-xr-xtests/df/no-mtab-status3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/df/no-mtab-status b/tests/df/no-mtab-status
index 6e078541f..e434f5f3e 100755
--- a/tests/df/no-mtab-status
+++ b/tests/df/no-mtab-status
@@ -26,6 +26,7 @@ df || skip_ "df fails"
cat > k.c <<'EOF' || framework_failure_
#include <stdio.h>
#include <errno.h>
+#include <mntent.h>
struct mntent *getmntent (FILE *fp)
{
@@ -44,7 +45,7 @@ EOF
# Then compile/link it:
$CC -shared -fPIC -ldl -O2 k.c -o k.so \
- || framework_failure_ 'failed to compile with -shared -fPIC'
+ || skip_ "getmntent hack does not work on this platform"
# Test if LD_PRELOAD works:
LD_PRELOAD=./k.so df