Problems with 22_locale/ctor_copy_dtor.cc

Peter Schmid schmid@snake.iap.physik.tu-darmstadt.de
Thu Jan 17 12:52:00 GMT 2002


Excecution of 22_locale/ctor_copy_dtor.cc does not pass on my system,
because LANG is set to C. If this variable is set to another
value, e.g., de_DE, all tests pass. 

The code at line number 127 is the culprit, VERIFY (loc07 != loc01). 
If loc7 is set to the C locale via the environment this test fails.        

I suggest removing this line.

2002-01-17 Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
	
	* testsuite/22_locale/ctor_copy_dtor.cc: Remove check, remove
          unused variable. 


*** ctor_copy_dtor.cc.orig	Thu Jan 17 21:41:36 2002
--- ctor_copy_dtor.cc	Thu Jan 17 21:42:12 2002
*************** void test01()
*** 59,65 ****
    typedef __enc_traits				enc_type;
    typedef codecvt<int_type, ext_type, enc_type>	unicode_codecvt;
  
-   bool test = true;
    string str1, str2;
  
    // construct a locale object with the C facet
--- 59,64 ----
*************** void test01()
*** 124,130 ****
    VERIFY (loc06 != loc02);  
    VERIFY (loc06.name() == "fr_FR");
    locale loc07("");
-   VERIFY (loc07 != loc01);  
    VERIFY (loc07 != loc02);  
    VERIFY (loc07.name() != "");
    try
--- 123,128 ----



More information about the Libstdc++ mailing list