OSDN Git Service

gcc/testsuite/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Feb 2007 13:56:16 +0000 (13:56 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Feb 2007 13:56:16 +0000 (13:56 +0000)
* lib/target-supports.exp (check_effective_target_lax_strtofp)
(check_effective_target_dummy_wcsftime): New functions.

libstdc++-v3/testsuite/
* 22_locale/time_put/put/wchar_t/1.cc: XFAIL if dummy_wcsftime.
* 22_locale/time_put/put/wchar_t/5.cc: Likewise.
* 22_locale/time_put/put/wchar_t/9.cc: Likewise.
* 22_locale/time_put/put/wchar_t/10.cc: Likewise.
* 22_locale/num_get/get/wchar_t/2.cc: XFAIL if lax_strtofp.
* 22_locale/num_get/get/char/2.cc: Likewise.
* 27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc: Likewise.
* 27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc: Likewise.
* 27_io/basic_istream/extractors_arithmetic/char/12.cc: Likewise.
* 27_io/basic_istream/extractors_arithmetic/char/09.cc: Likewise.
* 27_io/basic_ostream/inserters_arithmetic/wchar_t/6.cc: Likewise.
* 27_io/basic_ostream/inserters_arithmetic/char/6.cc: Likewise.
* 26_numerics/cmath/c99_classification_macros_c++.cc: XFAIL
for uClibc.
* 26_numerics/cmath/c99_classification_macros_c.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121749 138bc75d-0d04-0410-961f-82ee72b054a4

17 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp
libstdc++-v3/testsuite/22_locale/num_get/get/char/2.cc
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/10.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/9.cc
libstdc++-v3/testsuite/26_numerics/cmath/c99_classification_macros_c++.cc
libstdc++-v3/testsuite/26_numerics/cmath/c99_classification_macros_c.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/6.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/6.cc
libstdc++-v3/testsuite/ChangeLog [new file with mode: 0644]

index 1c153c3..4d65bf4 100644 (file)
@@ -1,5 +1,10 @@
 2007-02-09  Richard Sandiford  <richard@codesourcery.com>
 
+       * lib/target-supports.exp (check_effective_target_lax_strtofp)
+       (check_effective_target_dummy_wcsftime): New functions.
+
+2007-02-09  Richard Sandiford  <richard@codesourcery.com>
+
        * gcc.c-torture/execute/20030125-1.x: Return 1 for uClibc targets.
        * lib/target-supports.exp (check_effective_target_uclibc): New
        function.
index 7027cb5..d1daf0f 100644 (file)
@@ -2045,6 +2045,24 @@ proc check_effective_target_uclibc {} {
     }]
 }
 
+# Return 1 if
+#   (a) an error of a few ULP is expected in string to floating-point
+#       conversion functions; and
+#   (b) overflow is not always detected correctly by those functions.
+
+proc check_effective_target_lax_strtofp {} {
+    # By default, assume that all uClibc targets suffer from this.
+    return [check_effective_target_uclibc]
+}
+
+# Return 1 if this is a target for which wcsftime is a dummy
+# function that always returns 0.
+
+proc check_effective_target_dummy_wcsftime {} {
+    # By default, assume that all uClibc targets suffer from this.
+    return [check_effective_target_uclibc]
+}
+
 # Return 1 if the target matches the effective target 'arg', 0 otherwise.
 # This can be used with any check_* proc that takes no argument and
 # returns only 1 or 0.  It could be used with check_* procs that take
index 98e1361..e83f531 100644 (file)
@@ -20,6 +20,8 @@
 
 // 22.2.2.1.1  num_get members
 
+// { dg-do run { xfail lax_strtofp } }
+
 #include <locale>
 #include <sstream>
 #include <testsuite_hooks.h>
index 782275d..300556f 100644 (file)
@@ -20,6 +20,8 @@
 
 // 22.2.2.1.1  num_get members
 
+// { dg-do run { xfail lax_strtofp } }
+
 #include <locale>
 #include <sstream>
 #include <testsuite_hooks.h>
index 9dd7726..e211eec 100644 (file)
@@ -20,6 +20,8 @@
 
 // 22.2.5.3.1 time_put members
 
+// { dg-do run { xfail dummy_wcsftime } }
+
 #include <locale>
 #include <sstream>
 #include <testsuite_hooks.h>
index f1c91b1..7e3da7a 100644 (file)
@@ -20,6 +20,8 @@
 
 // 22.2.5.3.1 time_put members
 
+// { dg-do run { xfail dummy_wcsftime } }
+
 #include <locale>
 #include <sstream>
 #include <testsuite_hooks.h>
index 4d30717..aaf3e39 100644 (file)
@@ -20,6 +20,8 @@
 
 // 22.2.5.3.1 time_put members
 
+// { dg-do run { xfail dummy_wcsftime } }
+
 #include <locale>
 #include <sstream>
 #include <testsuite_hooks.h>
index 3a3e01c..dd0803f 100644 (file)
@@ -20,6 +20,8 @@
 
 // 22.2.5.3.1 time_put members
 
+// { dg-do run { xfail dummy_wcsftime } }
+
 #include <locale>
 #include <sstream>
 #include <testsuite_hooks.h>
index fbbfbfd..5455008 100644 (file)
@@ -27,7 +27,8 @@
 // invalidate any other reasons why the executable file might be covered by
 // the GNU General Public License.
 
-// { dg-do compile }
+// { dg-do compile { xfail uclibc } }
+// { dg-excess-errors "" { target uclibc } }
 
 #include <cmath>
 
index 5af904b..a9cd058 100644 (file)
@@ -27,8 +27,8 @@
 // invalidate any other reasons why the executable file might be covered by
 // the GNU General Public License.
 
-// { dg-do compile { xfail *-*-linux* *-*-darwin* } }
-// { dg-excess-errors "" { target *-*-linux* *-*-darwin* } }
+// { dg-do compile { xfail { { *-*-linux* *-*-darwin* } || uclibc } } }
+// { dg-excess-errors "" { target { { *-*-linux* *-*-darwin* } || uclibc } } }
 
 #include <math.h>
 
index 5da8372..3a1391c 100644 (file)
@@ -20,6 +20,8 @@
 
 // 27.6.1.2.2 arithmetic extractors
 
+// { dg-do run { xfail lax_strtofp } }
+
 #include <istream>
 #include <sstream>
 #include <locale>
index 21e2940..e5ef640 100644 (file)
@@ -23,7 +23,7 @@
 // XXX This test fails on sparc-solaris2 because of a bug in libc
 // XXX sscanf for very long input.  See:
 // XXX http://gcc.gnu.org/ml/gcc/2002-12/msg01422.html
-// { dg-do run { xfail sparc*-*-solaris2* } }
+// { dg-do run { xfail { { sparc*-*-solaris2* } || lax_strtofp } } }
 
 #include <istream>
 #include <sstream>
index 6ffae08..2b8764c 100644 (file)
@@ -21,7 +21,7 @@
 // XXX This test fails on sparc-solaris2 because of a bug in libc
 // XXX sscanf for very long input.  See:
 // XXX http://gcc.gnu.org/ml/gcc/2002-12/msg01422.html
-// { dg-do run { xfail sparc*-*-solaris2* } }
+// { dg-do run { xfail { { sparc*-*-solaris2* } || lax_strtofp } } }
 
 #include <istream>
 #include <sstream>
index dac5afd..a4939b8 100644 (file)
@@ -19,6 +19,8 @@
 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 // USA.
 
+// { dg-do run { xfail lax_strtofp } }
+
 #include <cmath> // for abs
 #include <cfloat> // for DBL_EPSILON
 #include <sstream>
index b25b3f0..c7b29ca 100644 (file)
@@ -16,6 +16,8 @@
 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 // USA.
 
+// { dg-do run { xfail lax_strtofp } }
+
 #include <cmath> // for abs
 #include <cfloat> // for DBL_EPSILON
 #include <sstream>
diff --git a/libstdc++-v3/testsuite/ChangeLog b/libstdc++-v3/testsuite/ChangeLog
new file mode 100644 (file)
index 0000000..44966be
--- /dev/null
@@ -0,0 +1,18 @@
+2007-02-09  Richard Sandiford  <richard@codesourcery.com>
+
+       * 22_locale/time_put/put/wchar_t/1.cc: XFAIL if dummy_wcsftime.
+       * 22_locale/time_put/put/wchar_t/5.cc: Likewise.
+       * 22_locale/time_put/put/wchar_t/9.cc: Likewise.
+       * 22_locale/time_put/put/wchar_t/10.cc: Likewise.
+       * 22_locale/num_get/get/wchar_t/2.cc: XFAIL if lax_strtofp.
+       * 22_locale/num_get/get/char/2.cc: Likewise.
+       * 27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc: Likewise.
+       * 27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc: Likewise.
+       * 27_io/basic_istream/extractors_arithmetic/char/12.cc: Likewise.
+       * 27_io/basic_istream/extractors_arithmetic/char/09.cc: Likewise.
+       * 27_io/basic_ostream/inserters_arithmetic/wchar_t/6.cc: Likewise.
+       * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: Likewise.
+       * 26_numerics/cmath/c99_classification_macros_c++.cc: XFAIL
+       for uClibc.
+       * 26_numerics/cmath/c99_classification_macros_c.cc: Likewise.
+