[v3] Fix temporary switch to the "C" locale

Takeshi Kobayakawa tskoba@mte.biglobe.ne.jp
Sun May 5 02:11:00 GMT 2002


pcarlini> after testing on i686-pc-linux-gnu I have committed to the trunk the 
pcarlini> below, approved by Benjamin Kosnik.

Benjamin, Paolo, thanks for all of your kind and quick actions.

I could also check the patch worked fine with your testsuit as described below.
The result shows:
  In "22_locale/num_put_members_char.cc", the assertion loc1 == loc2 fails
  originally, while it passes after patched.
  No other changes in the testsuits.
However, "22_locale/num_put_members_char.cc" seems to XPASS after patched
rather than just PASS.

BTW, rebuilding whole gcc tree seemed neccesarry to make check libstdc++
subdirs for the testcase. The step was,
1) patch libstdc++-v3 tree.
2) configure and build gcc tree, then install somewhere.
3) configure and build libstdc++-v3 using CC and CXX made in the previous step.
4) install libstdc++.so somewhere.
5) use LD_LIBRARY_PATH to point libstdc++.so made in the previous step.
6) make check patched libstdc++-v3 tree.
just for information.

---
	Takeshi Kobayakawa
	tskoba@mte.biglobe.ne.jp

* Environment
Platform: i686-pc-linux-gnu
Kernel: 2.4.18
GLIBC: 2.2.5
gcc CVS tree: as of 20020503

* testsuit results without the patch.

		=== libstdc++-v3 Summary ===

# of expected passes		372
# of unexpected failures	3
# of unexpected successes	20
# of expected failures		5

* testsuit results after applying the patch.

		=== libstdc++-v3 Summary ===

# of expected passes		372
# of unexpected failures	3
# of unexpected successes	21
# of expected failures		4

* differences between two results (w/o and w/ the patch)

--- libstdc++-v3.sum.org	Sun May  5 14:51:03 2002
+++ libstdc++-v3.sum	Sun May  5 16:50:04 2002
@@ -1 +1 @@
-Test Run By tskoba on Sun May  5 14:41:24 2002
+Test Run By tskoba on Sun May  5 16:37:48 2002
@@ -170 +170 @@
-XFAIL: 22_locale/num_put_members_char.cc execution test
+XPASS: 22_locale/num_put_members_char.cc execution test
@@ -416,2 +416,2 @@
-# of unexpected successes	20
-# of expected failures		5
+# of unexpected successes	21
+# of expected failures		4

--- libstdc++-v3.log.org	Sun May  5 14:51:03 2002
+++ libstdc++-v3.log	Sun May  5 16:50:04 2002
@@ -1 +1 @@
-Test Run By tskoba on Sun May  5 14:41:24 2002
+Test Run By tskoba on Sun May  5 16:37:48 2002
@@ -264,2 +264 @@
-num_put_members_char.exe: /home/tskoba/agent/gcc.setlocale.patched/libstdc++-v3/testsuite/22_locale/num_put_members_char.cc:321: void test04(): Assertion `loc1 == loc2' failed.
-XFAIL: 22_locale/num_put_members_char.cc execution test
+XPASS: 22_locale/num_put_members_char.cc execution test
@@ -741 +740 @@
-testcase /home/tskoba/agent/gcc.setlocale.patched/libstdc++-v3/testsuite/libstdc++-v3.dg/dg.exp completed in 579 seconds
+testcase /home/tskoba/agent/gcc.setlocale.patched/libstdc++-v3/testsuite/libstdc++-v3.dg/dg.exp completed in 736 seconds
@@ -747,3 +746,3 @@
-# of unexpected successes	20
-# of expected failures		5
-runtest completed at Sun May  5 14:51:03 2002
+# of unexpected successes	21
+# of expected failures		4
+runtest completed at Sun May  5 16:50:04 2002



More information about the Libstdc++ mailing list