This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[libstdc++ 2/2] iconv tests


And here's the second half to actually use the new functions.


2004-02-27  Eric Christopher  <echristo@redhat.com>
            Phil Edwards  <phil@codesourcery.com>

	* testsuite/22_locale/collate/compare/wchar_t/2.cc,
	testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
	testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
	testsuite/22_locale/collate/hash/wchar_t/2.cc,
	testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
	testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
	testsuite/22_locale/collate/transform/wchar_t/2.cc,
	testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
	testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
	Use dg-require-iconv.
	* testsuite/lib/libstdc++.exp:  Load target-supports.exp.


Index: testsuite/22_locale/collate/compare/wchar_t/2.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/2.cc,v
retrieving revision 1.7
diff -u -p -r1.7 2.cc
--- testsuite/22_locale/collate/compare/wchar_t/2.cc	19 Feb 2004 22:07:45 -0000	1.7
+++ testsuite/22_locale/collate/compare/wchar_t/2.cc	27 Feb 2004 22:04:28 -0000
@@ -20,6 +20,7 @@
 
 // { dg-do run }
 // { dg-options "-finput-charset=ISO8859-1" }
+// { dg-require-iconv "ISO8859-1" }
 
 // 22.2.4.1.1 collate members
 
Index: testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,v
retrieving revision 1.5
diff -u -p -r1.5 wrapped_env.cc
--- testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc	19 Feb 2004 22:07:45 -0000	1.5
+++ testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc	27 Feb 2004 22:04:28 -0000
@@ -22,6 +22,7 @@
 
 // { dg-do run }
 // { dg-options "-finput-charset=ISO8859-1" }
+// { dg-require-iconv "ISO8859-1" }
 
 #include <testsuite_hooks.h>
 
Index: testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,v
retrieving revision 1.5
diff -u -p -r1.5 wrapped_locale.cc
--- testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc	19 Feb 2004 22:07:46 -0000	1.5
+++ testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc	27 Feb 2004 22:04:28 -0000
@@ -22,6 +22,7 @@
 
 // { dg-do run }
 // { dg-options "-finput-charset=ISO8859-1" }
+// { dg-require-iconv "ISO8859-1" }
 
 #include <testsuite_hooks.h>
 
Index: testsuite/22_locale/collate/hash/wchar_t/2.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/2.cc,v
retrieving revision 1.7
diff -u -p -r1.7 2.cc
--- testsuite/22_locale/collate/hash/wchar_t/2.cc	19 Feb 2004 22:07:51 -0000	1.7
+++ testsuite/22_locale/collate/hash/wchar_t/2.cc	27 Feb 2004 22:04:28 -0000
@@ -22,6 +22,7 @@
 
 // { dg-do run }
 // { dg-options "-finput-charset=ISO8859-1" }
+// { dg-require-iconv "ISO8859-1" }
 
 #include <locale>
 #include <testsuite_hooks.h>
Index: testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,v
retrieving revision 1.5
diff -u -p -r1.5 wrapped_env.cc
--- testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc	19 Feb 2004 22:07:52 -0000	1.5
+++ testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc	27 Feb 2004 22:04:28 -0000
@@ -22,6 +22,7 @@
 
 // { dg-do run }
 // { dg-options "-finput-charset=ISO8859-1" }
+// { dg-require-iconv "ISO8859-1" }
 
 #include <testsuite_hooks.h>
 
Index: testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,v
retrieving revision 1.5
diff -u -p -r1.5 wrapped_locale.cc
--- testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc	19 Feb 2004 22:07:52 -0000	1.5
+++ testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc	27 Feb 2004 22:04:28 -0000
@@ -22,6 +22,7 @@
 
 // { dg-do run }
 // { dg-options "-finput-charset=ISO8859-1" }
+// { dg-require-iconv "ISO8859-1" }
 
 #include <testsuite_hooks.h>
 
Index: testsuite/22_locale/collate/transform/wchar_t/2.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/2.cc,v
retrieving revision 1.7
diff -u -p -r1.7 2.cc
--- testsuite/22_locale/collate/transform/wchar_t/2.cc	19 Feb 2004 22:07:55 -0000	1.7
+++ testsuite/22_locale/collate/transform/wchar_t/2.cc	27 Feb 2004 22:04:28 -0000
@@ -22,6 +22,7 @@
 
 // { dg-do run }
 // { dg-options "-finput-charset=ISO8859-1" }
+// { dg-require-iconv "ISO8859-1" }
 
 #include <locale>
 #include <testsuite_hooks.h>
Index: testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,v
retrieving revision 1.5
diff -u -p -r1.5 wrapped_env.cc
--- testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc	19 Feb 2004 22:07:55 -0000	1.5
+++ testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc	27 Feb 2004 22:04:28 -0000
@@ -22,6 +22,7 @@
 
 // { dg-do run }
 // { dg-options "-finput-charset=ISO8859-1" }
+// { dg-require-iconv "ISO8859-1" }
 
 #include <testsuite_hooks.h>
 
Index: testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc,v
retrieving revision 1.5
diff -u -p -r1.5 wrapped_locale.cc
--- testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc	19 Feb 2004 22:07:55 -0000	1.5
+++ testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc	27 Feb 2004 22:04:28 -0000
@@ -22,6 +22,7 @@
 
 // { dg-do run }
 // { dg-options "-finput-charset=ISO8859-1" }
+// { dg-require-iconv "ISO8859-1" }
 
 #include <testsuite_hooks.h>
 
Index: testsuite/lib/libstdc++.exp
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/lib/libstdc++.exp,v
retrieving revision 1.16
diff -u -p -r1.16 libstdc++.exp
--- testsuite/lib/libstdc++.exp	27 Feb 2004 22:01:31 -0000	1.16
+++ testsuite/lib/libstdc++.exp	27 Feb 2004 22:04:29 -0000
@@ -47,6 +47,7 @@ proc load_gcc_lib { filename } {
 load_lib dg.exp
 load_lib libgloss.exp
 # compiler routines, then ours
+load_gcc_lib target-supports.exp
 load_lib prune.exp
 load_lib dg-options.exp
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]