target-supports.exp (check_effective_target_unwrapped): New.
authorMark Mitchell <mark@codesourcery.com>
Fri, 23 Feb 2007 22:12:49 +0000 (22:12 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 23 Feb 2007 22:12:49 +0000 (22:12 +0000)
* lib/target-supports.exp (check_effective_target_unwrapped): New.

* testsuite/27_io/ios_base/sync_with_stdio/1.cc: XFAIL for wrapped
targets.

From-SVN: r122273

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/ios_base/sync_with_stdio/1.cc

index 846244c5ccc375665df6092ff11b7256ef55a472..e6a75c40c9fcfd23afe4201a0cdbbdb326fd18f2 100644 (file)
@@ -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
index 786f1fc5726116d3ecc42b9c57047178058d8a43..a13ba3e292a2e615ede0f7394baeb99e85d78c6e 100644 (file)
@@ -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 } {
index d6481c63230645c2d35f20cc20c1fd44eb91f618..eb27702ada77ef8d5fa73f59fa5f79a387261169 100644 (file)
@@ -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.
index dc78bb0e75ea006f65fd75ff11cb772409f0efe9..d4aaa5b3ea280238c2155135f29f658d5a5434e3 100644 (file)
 // @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>