2006-01-05 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Jan 2006 02:11:55 +0000 (02:11 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Jan 2006 02:11:55 +0000 (02:11 +0000)
* testsuite/testsuite_hooks.h (test_tm(unsigned)): Change to
take all the tm members.
* testsuite/testsuite_hooks.cc (test_tm): Adjust.
* testsuite/22_locale/time_put/put/wchar_t/10.cc: Update.
* testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/9.cc: Likewise.
* testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
* testsuite/22_locale/time_put/put/char/10.cc: Likewise.
* testsuite/22_locale/time_put/put/char/1.cc: Likewise.
* testsuite/22_locale/time_put/put/char/2.cc: Likewise.
* testsuite/22_locale/time_put/put/char/3.cc: Likewise.
* testsuite/22_locale/time_put/put/char/4.cc: Likewise.
* testsuite/22_locale/time_put/put/char/5.cc: Likewise.
* testsuite/22_locale/time_put/put/char/6.cc: Likewise.
* testsuite/22_locale/time_put/put/char/7.cc: Likewise.
* testsuite/22_locale/time_put/put/char/8.cc: Likewise.
* testsuite/22_locale/time_put/put/char/9.cc: Likewise.
* testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
* testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
* testsuite/22_locale/time_get/get_year/wchar_t/3.cc: Likewise.
* testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
* testsuite/22_locale/time_get/get_year/char/3.cc: Likewise.
* testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
* testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
* testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
  * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/char/3.cc: Likewise.
* testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
* testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
* testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
* testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
* testsuite/22_locale/time_get/get_date/wchar_t/3.cc: Likewise.
  * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
* testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
* testsuite/22_locale/time_get/get_date/char/1.cc: Likewise.
* testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
* testsuite/22_locale/time_get/get_date/char/3.cc: Likewise.
* testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
* testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
* testsuite/22_locale/time_get/get_time/wchar_t/3.cc: Likewise.
* testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
* testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
* testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
* testsuite/22_locale/time_get/get_time/char/3.cc: Likewise.
* testsuite/22_locale/time_get/get_time/char/4.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109407 138bc75d-0d04-0410-961f-82ee72b054a4

55 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/char/12750.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/char/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/12750.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/char/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/char/4.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_year/char/3.cc
libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/10.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/17038.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc
libstdc++-v3/testsuite/22_locale/time_put/put/char/9.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/17038.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc
libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/9.cc
libstdc++-v3/testsuite/testsuite_hooks.cc
libstdc++-v3/testsuite/testsuite_hooks.h

index 8f18f5c..ffb3edb 100644 (file)
@@ -1,5 +1,65 @@
 2006-01-05  Paolo Carlini  <pcarlini@suse.de>
        
+       * testsuite/testsuite_hooks.h (test_tm(unsigned)): Change to
+       take all the tm members.
+       * testsuite/testsuite_hooks.cc (test_tm): Adjust.
+       * testsuite/22_locale/time_put/put/wchar_t/10.cc: Update.
+       * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/9.cc: Likewise.
+       * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/10.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/1.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/5.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/9.cc: Likewise.
+       * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
+       * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
+       * testsuite/22_locale/time_get/get_year/wchar_t/3.cc: Likewise.
+       * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
+       * testsuite/22_locale/time_get/get_year/char/3.cc: Likewise.
+       * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
+       * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
+       * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
+       * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
+       * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
+       * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
+       * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
+       * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
+       * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
+       * testsuite/22_locale/time_get/get_weekday/char/3.cc: Likewise.
+       * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
+       * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
+       * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
+       * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
+       * testsuite/22_locale/time_get/get_date/wchar_t/3.cc: Likewise.
+       * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
+       * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
+       * testsuite/22_locale/time_get/get_date/char/1.cc: Likewise.
+       * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
+       * testsuite/22_locale/time_get/get_date/char/3.cc: Likewise.
+       * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
+       * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
+       * testsuite/22_locale/time_get/get_time/wchar_t/3.cc: Likewise.
+       * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
+       * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
+       * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
+       * testsuite/22_locale/time_get/get_time/char/3.cc: Likewise.
+       * testsuite/22_locale/time_get/get_time/char/4.cc: Likewise.
+
+2006-01-05  Paolo Carlini  <pcarlini@suse.de>
+       
        * testsuite/testsuite_hooks.h (test_tm(unsigned)): New.
        * testsuite/testsuite_hooks.cc (test_tm(unsigned)): Define.
        * testsuite/22_locale/time_put/put/wchar_t/10.cc: Use it.
index f1d69fc..469133f 100644 (file)
@@ -47,7 +47,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // iter_type 
   // get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
index 91306d7..a51f5c5 100644 (file)
@@ -47,8 +47,8 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday01 = __gnu_test::test_tm(2);
-  const tm time_bday02 = __gnu_test::test_tm(3);
+  const tm time_bday01 = __gnu_test::test_tm(0, 0, 12, 2, 9, 103, 4, 274, -1);
+  const tm time_bday02 = __gnu_test::test_tm(0, 0, 12, 26, 9, 103, 0, 298, -1);
 
   // inspection of named locales, is_IS
   iss.imbue(loc_is);
index 2fea15c..8c5a876 100644 (file)
@@ -52,7 +52,7 @@ void test02()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // iter_type 
   // get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
index 2fbe756..92762e1 100644 (file)
@@ -38,7 +38,7 @@ void test03()
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = __gnu_test::test_tm(1);
+  const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0);
   tm tm1;
 
   istringstream iss; 
index cfe003a..aead697 100644 (file)
@@ -48,7 +48,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // iter_type 
   // get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
index ad8c6ef..40f1b5e 100644 (file)
@@ -47,8 +47,8 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday01 = __gnu_test::test_tm(2);
-  const tm time_bday02 = __gnu_test::test_tm(3);
+  const tm time_bday01 = __gnu_test::test_tm(0, 0, 12, 2, 9, 103, 4, 274, -1);
+  const tm time_bday02 = __gnu_test::test_tm(0, 0, 12, 26, 9, 103, 0, 298, -1);
 
   // inspection of named locales, is_IS
   iss.imbue(loc_is);
index 87cb1d8..3060063 100644 (file)
@@ -52,7 +52,7 @@ void test02()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // iter_type 
   // get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
index 2b38926..759b7fd 100644 (file)
@@ -38,7 +38,7 @@ void test03()
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = __gnu_test::test_tm(1);
+  const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0);
   tm tm1;
 
   istringstream iss; 
index 9ac63d2..b5d5d86 100644 (file)
@@ -38,7 +38,7 @@ void test01()
   locale loc_c = locale::classic();
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // iter_type 
   // get_monthname(iter_type, iter_type, ios_base&, 
index f9240e7..b291062 100644 (file)
@@ -40,7 +40,7 @@ void test02()
   VERIFY( loc_hk != loc_c );
   VERIFY( loc_hk != loc_de );
 
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   const string empty;
 
index 0cb1d03..17a9516 100644 (file)
@@ -38,7 +38,7 @@ void test01()
   locale loc_c = locale::classic();
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // iter_type 
   // get_monthname(iter_type, iter_type, ios_base&, 
index 3fc422e..fe52555 100644 (file)
@@ -40,7 +40,7 @@ void test02()
   VERIFY( loc_hk != loc_c );
   VERIFY( loc_hk != loc_de );
 
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   const wstring empty;
 
index 8b55d0c..e4c586e 100644 (file)
@@ -50,7 +50,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // 2
   // iter_type 
index ed0ea7a..2b71a6e 100644 (file)
@@ -39,7 +39,7 @@ void test02()
   VERIFY( loc_hk != loc_c );
 
   const string empty;
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // create an ostream-derived object, cache the time_get facet
   iterator_type end;
index ed6abcb..3356ade 100644 (file)
@@ -38,7 +38,7 @@ void test03()
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = __gnu_test::test_tm(1);
+  const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0);
   tm tm1;
 
   istringstream iss; 
index 8f43573..ff300bb 100644 (file)
@@ -46,7 +46,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(4);
+  const tm time_bday = __gnu_test::test_tm(60, 0, 12, 4, 3, 71, 0, 93, 0);
 
   iss.str("12:00:60 ");
   iterator_type is_it01(iss);
index 547b485..415d3fd 100644 (file)
@@ -50,7 +50,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // 2
   // iter_type 
index cde5193..1b3de6f 100644 (file)
@@ -39,7 +39,7 @@ void test02()
   VERIFY( loc_hk != loc_c );
 
   const wstring empty;
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // create an ostream-derived object, cache the time_get facet
   iterator_type end;
index bef64c4..72892c6 100644 (file)
@@ -38,7 +38,7 @@ void test03()
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = __gnu_test::test_tm(1);
+  const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0);
   tm tm1;
 
   wistringstream iss; 
index 9ce9d80..ba9e9bd 100644 (file)
@@ -46,7 +46,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(4);
+  const tm time_bday = __gnu_test::test_tm(60, 0, 12, 4, 3, 71, 0, 93, 0);
 
   iss.str(L"12:00:60 ");
   iterator_type is_it01(iss);
index 2841f1a..1c214bf 100644 (file)
@@ -47,7 +47,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // iter_type 
   // get_weekday(iter_type, iter_type, ios_base&, 
index 91d51a5..08b06ef 100644 (file)
@@ -52,7 +52,7 @@ void test02()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // inspection of named locales, de_DE
   iss.imbue(loc_de);
index cc76964..46f0184 100644 (file)
@@ -38,7 +38,7 @@ void test03()
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = __gnu_test::test_tm(1);
+  const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0);
   tm tm1;
 
   istringstream iss; 
index 8524853..27b6cff 100644 (file)
@@ -47,7 +47,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // iter_type 
   // get_weekday(iter_type, iter_type, ios_base&, 
index 1f7ae8b..e354797 100644 (file)
@@ -52,7 +52,7 @@ void test02()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // inspection of named locales, de_DE
   iss.imbue(loc_de);
index 2f253f6..4439334 100644 (file)
@@ -38,7 +38,7 @@ void test03()
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = __gnu_test::test_tm(1);
+  const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0);
   tm tm1;
 
   wistringstream iss; 
index 4db4332..782984c 100644 (file)
@@ -47,7 +47,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
   // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // iter_type 
   // get_year(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
index 63b694d..6a646b1 100644 (file)
@@ -38,7 +38,7 @@ void test03()
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = __gnu_test::test_tm(1);
+  const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0);
   tm tm1;
 
   istringstream iss; 
index 143e7e2..0bf843d 100644 (file)
@@ -47,7 +47,7 @@ void test01()
   ios_base::iostate errorstate = good;
 
    // create "C" time objects
-  const tm time_bday = __gnu_test::test_tm(0);
+  const tm time_bday = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // iter_type 
   // get_year(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
index 7be8f17..fdfa472 100644 (file)
@@ -38,7 +38,7 @@ void test03()
   const locale loc_c = locale::classic();
 
   // Create "C" time objects
-  const tm time_sanity = __gnu_test::test_tm(1);
+  const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0);
   tm tm1;
 
   istringstream iss; 
index 3edc4f9..ee06172 100644 (file)
@@ -32,7 +32,7 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // basic construction
   locale loc_c = locale::classic();
index ad20ffc..c7e2abe 100644 (file)
@@ -40,7 +40,7 @@ void test10()
   const locale loc_c = locale::classic();
   const string x(50, 'x'); // have to have allocated string!
   string res;
-  const tm time_sanity = __gnu_test::test_tm(1);
+  const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0);
 
   ostringstream oss; 
   oss.imbue(locale(loc_c, new time_put_type));
index f218cc1..aa456fc 100644 (file)
@@ -35,7 +35,7 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // basic construction
   locale loc_c = locale::classic();
index 487534d..121ad78 100644 (file)
@@ -34,7 +34,7 @@ void test02()
   bool test __attribute__((unused)) = true;
 
   // create "C" time object
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // basic construction and sanity check
   locale loc_c = locale::classic();
index 72c8abc..acae5c1 100644 (file)
@@ -34,7 +34,7 @@ void test03()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // basic construction and sanity check.
   locale loc_c = locale::classic();
index f75fdbc..3301839 100644 (file)
@@ -34,7 +34,7 @@ void test04()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // basic construction and sanity check
   locale loc_c = locale::classic();
index adaf217..e7a93f0 100644 (file)
@@ -33,7 +33,7 @@ void test05()
   bool test __attribute__((unused)) = true;
 
    // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
   const char* date = "%A, the second of %B";
   const char* date_ex = "%Ex";
 
index cc3ac67..0bb9a2d 100644 (file)
@@ -35,7 +35,7 @@ void test06()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
   const char* date = "%A, the second of %B";
   const char* date_ex = "%Ex";
 
index 7fd9472..7753fe9 100644 (file)
@@ -35,7 +35,7 @@ void test07()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
   const char* date = "%A, the second of %B";
   const char* date_ex = "%Ex";
 
index a5507cb..3a1d991 100644 (file)
@@ -35,7 +35,7 @@ void test08()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
   const char* date = "%A, the second of %B";
   const char* date_ex = "%Ex";
 
index d222baf..86c509c 100644 (file)
@@ -40,7 +40,7 @@ void test09()
   const locale loc_c = locale::classic();
   const string x(50, 'x'); // have to have allocated string!
   string res;
-  const tm time_sanity = __gnu_test::test_tm(1);
+  const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0);
   const char* date = "%X, %A, the second of %B, %Y";
 
   ostringstream oss; 
index 1637d3f..9dd7726 100644 (file)
@@ -32,7 +32,7 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // basic construction
   locale loc_c = locale::classic();
index 4e793e8..f1c91b1 100644 (file)
@@ -40,7 +40,7 @@ void test10()
   const locale loc_c = locale::classic();
   const wstring x(50, 'x'); // have to have allocated wstring!
   wstring res;
-  const tm time_sanity = __gnu_test::test_tm(1);
+  const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0);
 
   wostringstream oss; 
   oss.imbue(locale(loc_c, new time_put_type));
index c0a8ec0..e245f48 100644 (file)
@@ -35,7 +35,7 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // basic construction
   locale loc_c = locale::classic();
index feb5ae4..672248c 100644 (file)
@@ -34,7 +34,7 @@ void test02()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // basic construction and sanity check
   locale loc_c = locale::classic();
index 4908431..8f8659d 100644 (file)
@@ -34,7 +34,7 @@ void test03()
   bool test __attribute__((unused)) = true;
 
    // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // basic construction and sanity check
   locale loc_c = locale::classic();
index 6c074f3..a3b469d 100644 (file)
@@ -34,7 +34,7 @@ void test04()
   bool test __attribute__((unused)) = true;
   
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
 
   // basic construction and sanity check
   locale loc_c = locale::classic();
index eef787c..4d30717 100644 (file)
@@ -33,7 +33,7 @@ void test05()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
   const wchar_t* date = L"%A, the second of %B";
   const wchar_t* date_ex = L"%Ex";
 
index d527399..28f3d9a 100644 (file)
@@ -35,7 +35,7 @@ void test06()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
   const wchar_t* date = L"%A, the second of %B";
   const wchar_t* date_ex = L"%Ex";
 
index 299a20a..aecd6d9 100644 (file)
@@ -35,7 +35,7 @@ void test07()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
   const wchar_t* date = L"%A, the second of %B";
   const wchar_t* date_ex = L"%Ex";
 
index 5573a89..c3f123e 100644 (file)
@@ -35,7 +35,7 @@ void test08()
   bool test __attribute__((unused)) = true;
 
   // create "C" time objects
-  const tm time1 = __gnu_test::test_tm(0);
+  const tm time1 = __gnu_test::test_tm(0, 0, 12, 4, 3, 71, 0, 93, 0);
   const wchar_t* date = L"%A, the second of %B";
   const wchar_t* date_ex = L"%Ex";
 
index 951659a..3a3e01c 100644 (file)
@@ -40,7 +40,7 @@ void test09()
   const locale loc_c = locale::classic();
   const wstring x(50, L'x'); // have to have allocated wstring!
   wstring res;
-  const tm time_sanity = __gnu_test::test_tm(1);
+  const tm time_sanity = __gnu_test::test_tm(0, 0, 12, 26, 5, 97, 2, 0, 0);
   const wchar_t* date = L"%X, %A, the second of %B, %Y";
 
   wostringstream oss; 
index 5555b60..40189fb 100644 (file)
@@ -305,24 +305,19 @@ namespace __gnu_test
 
   // For use in 22_locale/time_get and time_put.
   tm
-  test_tm(unsigned index)
+  test_tm(int sec, int min, int hour, int mday, int mon,
+         int year, int wday, int yday, int isdst)
   {
-    const int data[5][9] = { { 0, 0, 12, 4, 3, 71, 0, 93, 0 },
-                            { 0, 0, 12, 26, 5, 97, 2, 0, 0 },
-                            { 0, 0, 12, 2, 9, 103, 4, 274, -1 },
-                            { 0, 0, 12, 26, 9, 103, 0, 298, -1 },
-                            { 60, 0, 12, 4, 3, 71, 0, 93, 0 } };
-
     static tm tmp;
-    tmp.tm_sec = data[index][0];
-    tmp.tm_min = data[index][1];
-    tmp.tm_hour = data[index][2];
-    tmp.tm_mday = data[index][3];
-    tmp.tm_mon = data[index][4];
-    tmp.tm_year = data[index][5];
-    tmp.tm_wday = data[index][6];
-    tmp.tm_yday = data[index][7];
-    tmp.tm_isdst = data[index][8];
+    tmp.tm_sec = sec;
+    tmp.tm_min = min;
+    tmp.tm_hour = hour;
+    tmp.tm_mday = mday;
+    tmp.tm_mon = mon;
+    tmp.tm_year = year;
+    tmp.tm_wday = wday;
+    tmp.tm_yday = yday;
+    tmp.tm_isdst = isdst;
     return tmp;
   }
 }; // namespace __gnu_test
index a5b0063..b6c675b 100644 (file)
@@ -387,7 +387,8 @@ namespace __gnu_test
   };
 
   // For use in 22_locale/time_get and time_put.
-  tm test_tm(unsigned);
+  tm test_tm(int sec, int min, int hour, int mday, int mon,
+            int year, int wday, int yday, int isdst);
 
 } // namespace __gnu_test