summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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