From aa1ec87f5261f60e2401aa38608440883648a21b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 18 Aug 2012 09:46:39 -0700 Subject: tests: port df/no-mtab-status to Solaris * tests/df/no-mtab-status: Include 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 . --- tests/df/no-mtab-status | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/df') 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 #include +#include 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 -- cgit v1.2.3-54-g00ecf