diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-18 09:46:39 -0700 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-08-19 22:31:39 +0200 |
commit | aa1ec87f5261f60e2401aa38608440883648a21b (patch) | |
tree | 8f7e26d9098db4584bb188b67472a6ec5ebc1a0c /tests/df/no-mtab-status | |
parent | e44943a25e4a225568b51a411f18ba61134d3eb3 (diff) | |
download | coreutils-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/no-mtab-status')
-rwxr-xr-x | tests/df/no-mtab-status | 3 |
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 |