summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-23 22:12:49 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-23 22:12:49 +0000
commitec32d774d427031e40fb2ead78dfbe2114f0bd11 (patch)
treecf8201f3edbe2c9f0490456a51b796c9a60678e8
parent55616ae29b564de5f59c6eb45b15926d22edf1a7 (diff)
downloadppe42-gcc-ec32d774d427031e40fb2ead78dfbe2114f0bd11.tar.gz
ppe42-gcc-ec32d774d427031e40fb2ead78dfbe2114f0bd11.zip
* lib/target-supports.exp (check_effective_target_unwrapped): New.
* testsuite/27_io/ios_base/sync_with_stdio/1.cc: XFAIL for wrapped targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122273 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/target-supports.exp10
-rw-r--r--libstdc++-v3/ChangeLog7
-rw-r--r--libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc6
4 files changed, 27 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 846244c5ccc..e6a75c40c9f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -2,6 +2,11 @@
* lib/target-supports.exp (check_effective_target_unwrapped): New.
+2007-02-23 Mark Mitchell <mark@codesourcery.com>
+
+ * lib/target-supports.exp (check_effective_target_newlib): New
+ function.
+
2007-02-23 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30660
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 786f1fc5726..a13ba3e292a 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -517,6 +517,16 @@ proc check_effective_target_mpaired_single { } {
} "-mpaired-single"]
}
+# Return 1 if the target does not use a status wrapper.
+
+proc check_effective_target_unwrapped { } {
+ if { [target_info needs_status_wrapper] != "" \
+ && [target_info needs_status_wrapper] != "0" } {
+ return 0
+ }
+ return 1
+}
+
# Return true if iconv is supported on the target. In particular IBM1047.
proc check_iconv_available { test_what } {
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index d6481c63230..eb27702ada7 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,4 +1,9 @@
-2007-02-22 Mark Mitchell <mark@codesourcery.com>
+2007-02-23 Mark Mitchell <mark@codesourcery.com>
+
+ * testsuite/27_io/ios_base/sync_with_stdio/1.cc: XFAIL for wrapped
+ targets.
+
+2007-02-23 Mark Mitchell <mark@codesourcery.com>
* testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
XFAIL for Newlib targets.
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc b/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc
index dc78bb0e75e..d4aaa5b3ea2 100644
--- a/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc
+++ b/libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc
@@ -25,6 +25,12 @@
// @require@ %-*.tst
// @diff@ %-*.tst %-*.txt
+// This test fails on platforms using a wrapper, because this test
+// redirects stdout to a file and so the exit status printed by the
+// wrapper is not visibile to DejaGNU. DejaGNU then assumes that the
+// test exited with a non-zero exit status.
+// { dg-do run { xfail { ! unwrapped } } }
+
#include <cstdio>
#include <sstream>
#include <iostream>
OpenPOWER on IntegriCloud