]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/36616 (Open issues from a test run)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 4 Jul 2008 15:40:38 +0000 (15:40 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 4 Jul 2008 15:40:38 +0000 (15:40 +0000)
2008-07-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/36616
* testsuite/22_locale/time_put/put/char/4.cc: Just use es_ES instead.
* testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.

From-SVN: r137467

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc

index a937a52aa92cfda0e406076c94485d4b6ce2518c..1f47acdf2d37778d46e12adf4b2ae2b2b12735d7 100644 (file)
@@ -1,3 +1,9 @@
+2008-07-04  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/36616
+       * testsuite/22_locale/time_put/put/char/4.cc: Just use es_ES instead.
+       * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
+       
 2008-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
index 2fb6cf6ae746d7d04d5ecb5efeaaea9fe37dc872..c28738d742b5594f83afd167c507ef233b7ab081 100644 (file)
@@ -39,30 +39,22 @@ void test04()
 
   // basic construction and sanity check
   locale loc_c = locale::classic();
-  locale loc_fr = locale("fr_FR@euro");
-  VERIFY( loc_fr != loc_c );
+  locale loc_es = locale("es_ES");
+  VERIFY( loc_es != loc_c );
 
   // create an ostream-derived object, cache the time_put facet
   const string empty;
   ostringstream oss;
-  oss.imbue(loc_fr);
+  oss.imbue(loc_es);
   const time_put<char>& tim_put = use_facet<time_put<char> >(oss.getloc()); 
   iterator_type os_it04 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'a');
   string result4 = oss.str();
-#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 7)
-  VERIFY( result4 == "dim." );
-#else
-  VERIFY( result4 == "dim" );
-#endif
+  VERIFY( result4 == "dom" );
 
-  oss.str(empty); // "%d.%m.%Y"
+  oss.str(empty); // "%d/%m/%y"
   iterator_type os_it27 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
-  string result27 = oss.str();
-#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 7)
-  VERIFY( result27 == "04/04/1971" );
-#else
-  VERIFY( result27 == "04.04.1971" );
-#endif
+  string result27 = oss.str(); // "04/04/71"
+  VERIFY( result27 == "04/04/71" );
 
   oss.str(empty); // "%T"
   iterator_type os_it28 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
@@ -71,12 +63,8 @@ void test04()
 
   oss.str(empty);
   iterator_type os_it37 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
-  string result37 = oss.str();
-#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 7)
-  VERIFY( result37 == "04/04/1971" );
-#else
-  VERIFY( result37 == "04.04.1971" );
-#endif
+  string result37 = oss.str(); // "04/04/71"
+  VERIFY( result37 == "04/04/71" );
 
   oss.str(empty);
   iterator_type os_it38 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
index 09920521945ae01c36fe80d747bd9999e853371f..c3d312da7d722c3b3e0adb07847fbb609ab21d9a 100644 (file)
@@ -39,30 +39,22 @@ void test04()
 
   // basic construction and sanity check
   locale loc_c = locale::classic();
-  locale loc_fr = locale("fr_FR@euro");
-  VERIFY( loc_fr != loc_c );
+  locale loc_es = locale("es_ES");
+  VERIFY( loc_es != loc_c );
 
   // create an ostream-derived object, cache the time_put facet
   const wstring empty;
   wostringstream oss;
-  oss.imbue(loc_fr);
+  oss.imbue(loc_es);
   const time_put<wchar_t>& tim_put = use_facet<time_put<wchar_t> >(oss.getloc()); 
   iterator_type os_it04 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'a');
   wstring result4 = oss.str();
-#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 7)
-  VERIFY( result4 == L"dim." );
-#else
-  VERIFY( result4 == L"dim" );
-#endif
+  VERIFY( result4 == L"dom" );
 
-  oss.str(empty); // "%d.%m.%Y"
+  oss.str(empty); // "%d/%m/%y"
   iterator_type os_it27 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x');
-  wstring result27 = oss.str();
-#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 7)
-  VERIFY( result27 == L"04/04/1971" );
-#else
-  VERIFY( result27 == L"04.04.1971" );
-#endif
+  wstring result27 = oss.str(); // "04/04/71"
+  VERIFY( result27 == L"04/04/71" );
 
   oss.str(empty); // "%T"
   iterator_type os_it28 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X');
@@ -71,12 +63,8 @@ void test04()
 
   oss.str(empty);
   iterator_type os_it37 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'x', 'E');
-  wstring result37 = oss.str();
-#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 7)
-  VERIFY( result37 == L"04/04/1971" );
-#else
-  VERIFY( result37 == L"04.04.1971" );
-#endif
+  wstring result37 = oss.str(); // "04/04/71"
+  VERIFY( result37 == L"04/04/71" );
 
   oss.str(empty);
   iterator_type os_it38 = tim_put.put(oss.rdbuf(), oss, L'*', &time1, 'X', 'E');