]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite_hooks.h (test_tm(unsigned)): Change to take all the tm members.
authorPaolo Carlini <pcarlini@suse.de>
Fri, 6 Jan 2006 02:11:55 +0000 (02:11 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 6 Jan 2006 02:11:55 +0000 (02:11 +0000)
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.

From-SVN: r109407

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 8f18f5cc1bdfb608460dadce5e726456b9144ff7..ffb3edb1567addc62e71a4d7967d9a3ad1e651c1 100644 (file)
@@ -1,3 +1,63 @@
+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.
index f1d69fc998a14026ce3ae8ad455307be791626a1..469133f8162c4a9460d35e6b09b48a3fe2a393c9 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 91306d7273e4f0c97dc4c26f7f21e0748c944f31..a51f5c5f3ffa93818cfbf0f7fc4c3b32b850ddf3 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 2fea15c1ac1950a7842bb3187ef91e696d929cb7..8c5a876bf9cc1f984a55a5b946dbf5f18686d48c 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 2fbe75648e9976c7d4b3a1c1ff7bb5d49675209a..92762e10775135314a5b6c0b01b48bb06c9611e9 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 cfe003abcac8262ed808fa8cf50d4c0b7daf0c66..aead697120c96b815bec09f37e652638fda058a1 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 ad8c6ef2be7fdbc9f749a47829578e520855817b..40f1b5edc6fd6c499b2b9bec26004f25a6177e86 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 87cb1d8fff5122723579f2c6940da8a995f0108b..3060063babe41e3991f895909d575a467cd7fc46 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 2b389268c09407fb3aaedc4936cb827616aaf3a2..759b7fd42e6fbd2ea8190078b87fdb1dd1a8f68e 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 9ac63d2ae1cfb9bedca7a6a2710808a59ed25bae..b5d5d869e54193298e44b4a744a1381707ec7879 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 f9240e7b3a42b40e7ff5dda60fb0c0e447896476..b29106297d4099a795baf9df1394c7a0c91bb8f8 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 0cb1d03024cc5d154a5a4b85113d6244c9b7c1c0..17a9516f063ae8e8f271572e42e0f657cec633db 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 3fc422e18d2db8c15d987e8cecf147cc6e0d6ec8..fe5255530e31bf1803c6e8e7df0e6379d9623374 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 8b55d0c6db4768ca7d0a7c172988d53bca4a732c..e4c586ef72b1c0d64047dfef5764bf12e4578f4a 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 ed0ea7acfd0507d29ba37c95c03e8a03575a570d..2b71a6ebb502a7b80fa409eec4d1dd581834cbe3 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 ed6abcb9bce2429fbfddd4dc3c236ffe753abadf..3356adef3c709796e1d8bb0de2bcc36356cd90c7 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 8f43573c2bb11168fb8bdf31a6ac1f08e2c8f1a5..ff300bbbf9ed196094fdd549b468c8b5dba7b97e 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 547b485202ddfe2dfd8a76a2a82fbde33bde5222..415d3fd1dc282ab4aebb1c82feb954dc7b57b6ac 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 cde51934571473184b3b987890a1302cb25d2f92..1b3de6f496ce128b5d00627d74893ee64b34b9d3 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 bef64c4d340f769a88c774fd1fcc62aec23c4105..72892c6086299879bf0dc502c54f1fa2029c8d11 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 9ce9d805d228a62f1beef7afa4ffa90d14c5d732..ba9e9bdf6f4434b45112c76c17ab9e5ccb263b23 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 2841f1a6c9a3a7a7580238b17f12e9ab7d453156..1c214bf1cdb4671596ee5bac9f636403fec8117a 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 91d51a59b64d09948f6657bfd489cf70e82540d0..08b06efec34962e4b95b9de3e53f1ae9ec026934 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 cc76964395c3d346726585db06a90f054748b472..46f01842547a060e889a77eff68064b68700752f 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 85248531e736c53ca235fbb222988bb198478d69..27b6cff54e9d690cb2489a99ae83c063407f0ad0 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 1f7ae8bc5bdea8c8876c0c1bbf335292275002d0..e3547972c81a24bfcebcfaf54c9162af4241c069 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 2f253f606fd7c55f9d2e1df1750edab3547e97c8..44393344500faabdd92a671dc67298c70e3d5870 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 4db4332bd81cd2a9598f79ff7efd4dddf4c8b6f4..782984cf50f5b0a2fa9c5fa8b6797ea7a1f2ee0f 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 63b694df9fa59999d6e46d707664348f7b6566c8..6a646b1a7a04f438120514bdab9baf29c062b7db 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 143e7e2ae58e59831f89bdbe9ff1178cf9a4e03a..0bf843d4dfa16938e0dbdde66c99bb1c38f51552 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 7be8f173fcce60bd0eb886730df8dbf38b872860..fdfa472ffeb7b9a20723314156af3f844f811076 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 3edc4f9ca8e6f8a236df348ba454eb32eba77e57..ee06172656d5c1e7b8c2c41304c74c73df643a32 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 ad20ffca66f9a6de4fccb6312c0bbd93775f665b..c7e2abe75ce9c80a4119752837ddf54b5310e6eb 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 f218cc1924f3c36e38c78db514dc5ef29150a784..aa456fc44582d41afd97b99ca886f4529f52e4aa 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 487534dc135a031756fdccfcb10aa37802b4dba6..121ad787bb343211a1ba39f2f64b946e184ec2a3 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 72c8abce642b5049fc419e61325a51e46e307746..acae5c1eb653ce044f86a20cc43b5081d37478fb 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 f75fdbc7b3e7a5eb3b19679651d3c56e12c8fb01..33018395283cffbcf69c4c095c23c0a9df651427 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 adaf2172764c774d0f3c923f7454f40454c14b2b..e7a93f07df673eba0ac80bf7551b739a680f16cb 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 cc3ac67f5191f0b2904e1727550324c53c2ceaf5..0bb9a2d28db6b954166dfc8b8ab9c13f87b1e406 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 7fd94725e328b8a91eb178fe81b817e85b9698ff..7753fe947bc9fbf433659bb924aec717e81daa2d 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 a5507cb27fc19fce8b163e3860405b867790b244..3a1d9914277a24b48b295fa0b4ae55456fa7f20f 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 d222bafa72e01612bffb3cede8de08aa6ad067c0..86c509c247c7586beb722bd3baf36cb262714028 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 1637d3fbb6d63b35e141e05ad96035468336d9ec..9dd77260a61eee75645afb5d75b4c9550adabd41 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 4e793e8d582d7c1689d32d328f7db90f38f0605b..f1c91b171e7ec2b872db1d25c95854a2821a1f18 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 c0a8ec07f0f9fdc41bb3d96ff37e162bbdb56a3e..e245f48e2cef2b1acbe741193b8f55a5e2f0b532 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 feb5ae47dcbd94e39bd60f1fdf8065185b45c6eb..672248c07ffe1c5c54224afd07ee509e42de85bc 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 4908431d10598a2a4475e2ea904633596d03d7b7..8f8659dcbbc6dd910e99fe2be260541665a46a56 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 6c074f38d185e285d1b2e32ea9f6634700225470..a3b469d67ce8f8432e55f306dda763e26e5e5fe6 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 eef787ce2e3926c0cfe68314e4bf75b927caecc7..4d30717cc8644340c819da099ce01edd1d443be2 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 d527399d65d25da18173f3fd200dc3f40262bec5..28f3d9ab74f15c0adc8073da47e33dee606b8253 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 299a20aa445b98447a5d6734f02b94424c9cb5ff..aecd6d93dca3f4aa7e404a547732b08519a68f26 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 5573a896000dd1d2d33b9f07a5cbca330c5e0c59..c3f123e4f6eb9cea1c37ca288a47bb426b621527 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 951659ab1f6f4581bb43fd167260d3dd741a28c0..3a3e01c633b1c9d6c5bf60af767994b41320e5a9 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 5555b60d1b6b601ce036b8f51b3a4e65da75b2e5..40189fbf5d4bc340fcff9fbf63caa1225534539c 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 a5b0063c73fd1f38bd9ada09afb10e21dc696cd6..b6c675b12e768621e0965a2603d060abdef9abe2 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