bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12225: One test failed on Solaris 10


From: Paul Eggert
Subject: bug#12225: One test failed on Solaris 10
Date: Sat, 18 Aug 2012 09:50:36 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

I've reproduced that one test failing, and propose the
following patch.  Thanks for reporting it.

>From b22895e213eab14a233f2e0d28d655aaf33e0fe9 Mon Sep 17 00:00:00 2001
From: Paul Eggert <address@hidden>
Date: Sat, 18 Aug 2012 09:46:39 -0700
Subject: [PATCH] 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>.
---
 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 6e07854..e434f5f 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
-- 
1.7.6.5






reply via email to

[Prev in Thread] Current Thread [Next in Thread]