]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc/testsuite/
authorRichard Sandiford <richard@codesourcery.com>
Fri, 9 Feb 2007 13:56:16 +0000 (13:56 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
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.

From-SVN: r121749

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 1c153c324dbd79607e116f94772b4e398d781776..4d65bf42b597a7c53fbbb587131159c9a2cd1138 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 7027cb5a95f0b779b2a185d849eef9dbd5429a14..d1daf0fecf04e4f14c5ea8a20a7c99dd1f480439 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 98e1361222206d5050bd566b3f12e5ff114cddbe..e83f531436d44f095cf9b977e91a0a350e11176f 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 782275d1c828dca29673aea76c95cdfa04749857..300556f7587b27fd7bd27debe5ae5f050aa9aed0 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 9dd77260a61eee75645afb5d75b4c9550adabd41..e211eeccb050aff08c359d78c190ff253703129d 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 f1c91b171e7ec2b872db1d25c95854a2821a1f18..7e3da7a10a173165da0a27c4cb3ed3199607de28 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 4d30717cc8644340c819da099ce01edd1d443be2..aaf3e391e8d926868541bf39efa166ce8b454427 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 3a3e01c633b1c9d6c5bf60af767994b41320e5a9..dd0803f31a6449f74bdff76a31673b4ca555d893 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 fbbfbfd4ef0ef6a46bf72bd1cb1aa7c80843ae26..5455008c42867bd20ff646fee65e714f5ac70bc1 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 5af904b11902471365c6e38d29a7acdf01f60099..a9cd0584a33fc4e57873d93c4e79b0317a0638ec 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 5da83724b6c2f66c7fe7193d5f7626f2da893e7c..3a1391c71f0b8b88ffea7ec5d6eda9d6a9be42e2 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 21e2940417f168fd0856f30bae03518e7b0967a8..e5ef640b2923c1144d1d758c98d3d7ba38ad4466 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 26021c2379f1fdde8947a70f8636abdf95bf64a5..dd0439edd2e9f2d1345c6bf9319f2d22261a8d78 100644 (file)
@@ -18,6 +18,8 @@
 
 // 27.6.1.2.2 arithmetic extractors
 
+// { dg-do run { xfail lax_strtofp } }
+
 #include <istream>
 #include <sstream>
 #include <locale>
index 6ffae08812571de0559cf4c0e2c05dfcdd73a185..2b8764c16a4d5ee58e8b58226f068aee9d1a27cd 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 dac5afd4b03823552fe7491c0ae5518f5334b268..a4939b87114f534412024987f7e27444c5fa85b8 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 b25b3f0288d09730097995d4d4f4df24ced3d5e7..c7b29ca3644bc35f2e8a1a38331dcc182c57f257 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.
+