From: Paul Eggert Date: Sat, 18 Aug 2012 16:46:39 +0000 (-0700) Subject: tests: port df/no-mtab-status to Solaris X-Git-Tag: v8.19~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa1ec87f5261f60e2401aa38608440883648a21b;p=thirdparty%2Fcoreutils.git 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 . --- diff --git a/tests/df/no-mtab-status b/tests/df/no-mtab-status index 6e078541fe..e434f5f3e4 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