diff options
author | Paolo Carlini <pcarlini@suse.de> | 2006-01-06 00:06:52 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2006-01-06 00:06:52 +0000 |
commit | 8877477c5ccb9654763ddc562bc111d7d6696c40 (patch) | |
tree | d0e609f9af6446e793bdf6b995f10d745e0e999d /libstdc++-v3/testsuite | |
parent | b9b58168de84c04122c4c5686c939a7794d6cb01 (diff) | |
download | gcc-8877477c5ccb9654763ddc562bc111d7d6696c40.zip gcc-8877477c5ccb9654763ddc562bc111d7d6696c40.tar.gz gcc-8877477c5ccb9654763ddc562bc111d7d6696c40.tar.bz2 |
testsuite_hooks.h (test_tm(unsigned)): New.
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.
* 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: r109390
Diffstat (limited to 'libstdc++-v3/testsuite')
54 files changed, 133 insertions, 106 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc index 73f533c..f1d69fc 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -47,7 +47,7 @@ void test01() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // iter_type // get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/12750.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/12750.cc index b5e1a24..91306d7 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/12750.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/12750.cc @@ -2,7 +2,7 @@ // 2003-10-27 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2003, 2005 Free Software Foundation +// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -47,8 +47,8 @@ void test01() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday01 = { 0, 0, 12, 2, 9, 103, 4, 274, -1 }; - const tm time_bday02 = { 0, 0, 12, 26, 9, 103, 0, 298, -1 }; + const tm time_bday01 = __gnu_test::test_tm(2); + const tm time_bday02 = __gnu_test::test_tm(3); // inspection of named locales, is_IS iss.imbue(loc_is); diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc index c1b8fae..2fea15c 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc @@ -2,7 +2,7 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -52,7 +52,7 @@ void test02() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // iter_type // get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/3.cc index fee8ced..2fbe756 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/3.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/3.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -38,7 +38,7 @@ void test03() const locale loc_c = locale::classic(); // Create "C" time objects - const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 }; + const tm time_sanity = __gnu_test::test_tm(1); tm tm1; istringstream iss; diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc index 61b079d..cfe003a 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -48,7 +48,7 @@ void test01() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // iter_type // get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/12750.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/12750.cc index 3301454..ad8c6ef 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/12750.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/12750.cc @@ -2,7 +2,7 @@ // 2003-10-27 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2003, 2005 Free Software Foundation +// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -47,8 +47,8 @@ void test01() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday01 = { 0, 0, 12, 2, 9, 103, 4, 274, -1 }; - const tm time_bday02 = { 0, 0, 12, 26, 9, 103, 0, 298, -1 }; + const tm time_bday01 = __gnu_test::test_tm(2); + const tm time_bday02 = __gnu_test::test_tm(3); // inspection of named locales, is_IS iss.imbue(loc_is); diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc index a506daf..87cb1d8 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc @@ -2,7 +2,7 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -52,7 +52,7 @@ void test02() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // iter_type // get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/3.cc index c4bd129..2b38926 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/3.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -38,7 +38,7 @@ void test03() const locale loc_c = locale::classic(); // Create "C" time objects - const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 }; + const tm time_sanity = __gnu_test::test_tm(1); tm tm1; istringstream iss; diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc index 678bee3..9ac63d2 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -38,7 +38,7 @@ void test01() locale loc_c = locale::classic(); // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // iter_type // get_monthname(iter_type, iter_type, ios_base&, diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc index 727f6a8..f9240e7 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc @@ -2,7 +2,7 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -40,7 +40,7 @@ void test02() VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_de ); - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); const string empty; diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc index 94c2f90..0cb1d03 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -38,7 +38,7 @@ void test01() locale loc_c = locale::classic(); // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // iter_type // get_monthname(iter_type, iter_type, ios_base&, diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc index 08a9365..3fc422e 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc @@ -2,7 +2,7 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -40,7 +40,7 @@ void test02() VERIFY( loc_hk != loc_c ); VERIFY( loc_hk != loc_de ); - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); const wstring empty; diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc index 9aa4599..8b55d0c 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc @@ -2,7 +2,7 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -50,7 +50,7 @@ void test01() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // 2 // iter_type diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc index 7539131..ed0ea7a 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc @@ -2,7 +2,7 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -39,7 +39,7 @@ void test02() VERIFY( loc_hk != loc_c ); const string empty; - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // create an ostream-derived object, cache the time_get facet iterator_type end; diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/3.cc index 1599278..ed6abcb 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/3.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/3.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -38,7 +38,7 @@ void test03() const locale loc_c = locale::classic(); // Create "C" time objects - const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 }; + const tm time_sanity = __gnu_test::test_tm(1); tm tm1; istringstream iss; diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/4.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/4.cc index e49a620..8f43573 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/4.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/4.cc @@ -1,6 +1,6 @@ // 2004-08-29 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2004 Free Software Foundation +// Copyright (C) 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -46,7 +46,7 @@ void test01() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 60, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(4); iss.str("12:00:60 "); iterator_type is_it01(iss); diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc index 15e3033..547b485 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc @@ -2,7 +2,7 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -50,7 +50,7 @@ void test01() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // 2 // iter_type diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc index 498badb..cde5193 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc @@ -2,7 +2,7 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -39,7 +39,7 @@ void test02() VERIFY( loc_hk != loc_c ); const wstring empty; - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // create an ostream-derived object, cache the time_get facet iterator_type end; diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/3.cc index e0bb444..bef64c4 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/3.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -38,7 +38,7 @@ void test03() const locale loc_c = locale::classic(); // Create "C" time objects - const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 }; + const tm time_sanity = __gnu_test::test_tm(1); tm tm1; wistringstream iss; diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/4.cc index 161fb19..9ce9d80 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/4.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/4.cc @@ -1,6 +1,6 @@ // 2004-08-29 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2004 Free Software Foundation +// Copyright (C) 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -46,7 +46,7 @@ void test01() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 60, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(4); iss.str(L"12:00:60 "); iterator_type is_it01(iss); diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc index d4c2607..2841f1a 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -47,7 +47,7 @@ void test01() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // iter_type // get_weekday(iter_type, iter_type, ios_base&, diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc index 23b50d6..91d51a5 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc @@ -2,7 +2,7 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -52,7 +52,7 @@ void test02() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // inspection of named locales, de_DE iss.imbue(loc_de); diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/3.cc index 24dcc51..cc76964 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/3.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/3.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -38,7 +38,7 @@ void test03() const locale loc_c = locale::classic(); // Create "C" time objects - const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 }; + const tm time_sanity = __gnu_test::test_tm(1); tm tm1; istringstream iss; diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc index 81e0cbd..8524853 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -47,7 +47,7 @@ void test01() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // iter_type // get_weekday(iter_type, iter_type, ios_base&, diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc index 6857abb..1f7ae8b 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc @@ -2,7 +2,7 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -52,7 +52,7 @@ void test02() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // inspection of named locales, de_DE iss.imbue(loc_de); diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc index 942c87c..2f253f6 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -38,7 +38,7 @@ void test03() const locale loc_c = locale::classic(); // Create "C" time objects - const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 }; + const tm time_sanity = __gnu_test::test_tm(1); tm tm1; wistringstream iss; diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc index 66e44ac..4db4332 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -47,7 +47,7 @@ void test01() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // iter_type // get_year(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/3.cc index 11b177f..63b694d 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/3.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/3.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -38,7 +38,7 @@ void test03() const locale loc_c = locale::classic(); // Create "C" time objects - const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 }; + const tm time_sanity = __gnu_test::test_tm(1); tm tm1; istringstream iss; diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc index 0fff5d5..143e7e2 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -47,7 +47,7 @@ void test01() ios_base::iostate errorstate = good; // create "C" time objects - const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time_bday = __gnu_test::test_tm(0); // iter_type // get_year(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc index 85fd34d..7be8f17 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc @@ -1,6 +1,6 @@ // 2001-09-21 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -38,7 +38,7 @@ void test03() const locale loc_c = locale::classic(); // Create "C" time objects - const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 }; + const tm time_sanity = __gnu_test::test_tm(1); tm tm1; istringstream iss; diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc index 2d6096c..3edc4f9 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc @@ -1,6 +1,6 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -32,7 +32,7 @@ void test01() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); // basic construction locale loc_c = locale::classic(); diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/10.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/10.cc index 9f2223d..ad20ffc 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/10.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/10.cc @@ -1,6 +1,6 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -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 = { 0, 0, 12, 26, 5, 97, 2 }; + const tm time_sanity = __gnu_test::test_tm(1); ostringstream oss; oss.imbue(locale(loc_c, new time_put_type)); diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/17038.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/17038.cc index bac3c91..f218cc1 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/17038.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/17038.cc @@ -2,7 +2,7 @@ // 2004-08-25 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2004, 2005 Free Software Foundation +// Copyright (C) 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -35,7 +35,7 @@ void test01() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); // basic construction locale loc_c = locale::classic(); diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc index db91d11..487534d 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc @@ -2,7 +2,7 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -34,7 +34,7 @@ void test02() bool test __attribute__((unused)) = true; // create "C" time object - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); // basic construction and sanity check locale loc_c = locale::classic(); diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc index 3fd2379..72c8abc 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc @@ -2,7 +2,7 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -34,7 +34,7 @@ void test03() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); // basic construction and sanity check. locale loc_c = locale::classic(); diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc index 8a2ba84..f75fdbc 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc @@ -2,7 +2,7 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -34,7 +34,7 @@ void test04() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); // basic construction and sanity check locale loc_c = locale::classic(); diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc index 6488b0e..adaf217 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc @@ -1,6 +1,6 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -33,7 +33,7 @@ void test05() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); const char* date = "%A, the second of %B"; const char* date_ex = "%Ex"; diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc index ffec039..cc3ac67 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc @@ -2,7 +2,7 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -35,7 +35,7 @@ void test06() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); const char* date = "%A, the second of %B"; const char* date_ex = "%Ex"; diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc index b4c5747..7fd9472 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc @@ -2,7 +2,7 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -35,7 +35,7 @@ void test07() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); const char* date = "%A, the second of %B"; const char* date_ex = "%Ex"; diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc index 4699fdb..a5507cb 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc @@ -2,7 +2,7 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -35,7 +35,7 @@ void test08() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); const char* date = "%A, the second of %B"; const char* date_ex = "%Ex"; diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/9.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/9.cc index 76f7110..d222baf 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/9.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/9.cc @@ -1,6 +1,6 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -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 = { 0, 0, 12, 26, 5, 97, 2 }; + const tm time_sanity = __gnu_test::test_tm(1); const char* date = "%X, %A, the second of %B, %Y"; ostringstream oss; diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc index c4be6be..1637d3f 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc @@ -1,6 +1,6 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -32,7 +32,7 @@ void test01() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); // basic construction locale loc_c = locale::classic(); diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/10.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/10.cc index c68e8ff..4e793e8 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/10.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/10.cc @@ -1,6 +1,6 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -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 = { 0, 0, 12, 26, 5, 97, 2 }; + const tm time_sanity = __gnu_test::test_tm(1); wostringstream oss; oss.imbue(locale(loc_c, new time_put_type)); diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/17038.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/17038.cc index 3f5527c..c0a8ec0 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/17038.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/17038.cc @@ -2,7 +2,7 @@ // 2004-08-25 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2004, 2005 Free Software Foundation +// Copyright (C) 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -35,7 +35,7 @@ void test01() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); // basic construction locale loc_c = locale::classic(); diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc index e986162..feb5ae4 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc @@ -2,7 +2,7 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -34,7 +34,7 @@ void test02() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); // basic construction and sanity check locale loc_c = locale::classic(); diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc index 83900e1..4908431 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc @@ -2,7 +2,7 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -34,7 +34,7 @@ void test03() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); // basic construction and sanity check locale loc_c = locale::classic(); diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc index bb98ecf..6c074f3 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc @@ -2,7 +2,7 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -34,7 +34,7 @@ void test04() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); // basic construction and sanity check locale loc_c = locale::classic(); diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc index e09382c..eef787c 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc @@ -1,6 +1,6 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -33,7 +33,7 @@ void test05() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); const wchar_t* date = L"%A, the second of %B"; const wchar_t* date_ex = L"%Ex"; diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc index 7f13c04..d527399 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc @@ -2,7 +2,7 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -35,7 +35,7 @@ void test06() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); const wchar_t* date = L"%A, the second of %B"; const wchar_t* date_ex = L"%Ex"; diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc index 31c7b96..299a20a 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc @@ -2,7 +2,7 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -35,7 +35,7 @@ void test07() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); const wchar_t* date = L"%A, the second of %B"; const wchar_t* date_ex = L"%Ex"; diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc index 4e0da84..5573a89 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc @@ -2,7 +2,7 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -35,7 +35,7 @@ void test08() bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; + const tm time1 = __gnu_test::test_tm(0); const wchar_t* date = L"%A, the second of %B"; const wchar_t* date_ex = L"%Ex"; diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/9.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/9.cc index a421835..951659a 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/9.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/9.cc @@ -1,6 +1,6 @@ // 2001-09-17 Benjamin Kosnik <bkoz@redhat.com> -// Copyright (C) 2001, 2002, 2003 Free Software Foundation +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -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 = { 0, 0, 12, 26, 5, 97, 2 }; + const tm time_sanity = __gnu_test::test_tm(1); const wchar_t* date = L"%X, %A, the second of %B, %Y"; wostringstream oss; diff --git a/libstdc++-v3/testsuite/testsuite_hooks.cc b/libstdc++-v3/testsuite/testsuite_hooks.cc index 8d3d530..35117fa 100644 --- a/libstdc++-v3/testsuite/testsuite_hooks.cc +++ b/libstdc++-v3/testsuite/testsuite_hooks.cc @@ -302,4 +302,27 @@ namespace __gnu_test std::__throw_runtime_error("could not wait for semaphore"); #endif } + + // For use in 22_locale/time_get and time_put. + tm + test_tm(unsigned index) + { + 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]; + return tmp; + } }; // namespace __gnu_test diff --git a/libstdc++-v3/testsuite/testsuite_hooks.h b/libstdc++-v3/testsuite/testsuite_hooks.h index 38b8063..ae55f29 100644 --- a/libstdc++-v3/testsuite/testsuite_hooks.h +++ b/libstdc++-v3/testsuite/testsuite_hooks.h @@ -385,6 +385,10 @@ namespace __gnu_test pid_t pid_; }; + + // For use in 22_locale/time_get and time_put. + tm test_tm(unsigned); + } // namespace __gnu_test #endif // _GLIBCXX_TESTSUITE_HOOKS_H |