|
|
1198f7 |
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/12791.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/12791.cc
|
|
|
1198f7 |
index fa740b42b88..5d808ee51ee 100644
|
|
|
1198f7 |
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/12791.cc
|
|
|
1198f7 |
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/12791.cc
|
|
|
1198f7 |
@@ -39,14 +39,14 @@ void test01()
|
|
|
1198f7 |
const ios_base::iostate good = ios_base::goodbit;
|
|
|
1198f7 |
ios_base::iostate errorstate = good;
|
|
|
1198f7 |
|
|
|
1198f7 |
- iss.str("62/04/71");
|
|
|
1198f7 |
+ iss.str("60/04/71");
|
|
|
1198f7 |
iterator_type is_it01(iss);
|
|
|
1198f7 |
tm time01;
|
|
|
1198f7 |
errorstate = good;
|
|
|
1198f7 |
iterator_type ret01 = tim_get.get_date(is_it01, end, iss, errorstate,
|
|
|
1198f7 |
&time01);
|
|
|
1198f7 |
VERIFY( errorstate == ios_base::failbit );
|
|
|
1198f7 |
- VERIFY( *ret01 == '2' );
|
|
|
1198f7 |
+ VERIFY( *ret01 == '6' );
|
|
|
1198f7 |
|
|
|
1198f7 |
iss.str("04/38/71");
|
|
|
1198f7 |
iterator_type is_it02(iss);
|
|
|
1198f7 |
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/12791.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/12791.cc
|
|
|
1198f7 |
index 07f4c369e58..c975c8523d8 100644
|
|
|
1198f7 |
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/12791.cc
|
|
|
1198f7 |
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/12791.cc
|
|
|
1198f7 |
@@ -40,14 +40,14 @@ void test01()
|
|
|
1198f7 |
const ios_base::iostate good = ios_base::goodbit;
|
|
|
1198f7 |
ios_base::iostate errorstate = good;
|
|
|
1198f7 |
|
|
|
1198f7 |
- iss.str(L"62/04/71");
|
|
|
1198f7 |
+ iss.str(L"60/04/71");
|
|
|
1198f7 |
iterator_type is_it01(iss);
|
|
|
1198f7 |
tm time01;
|
|
|
1198f7 |
errorstate = good;
|
|
|
1198f7 |
iterator_type ret01 = tim_get.get_date(is_it01, end, iss, errorstate,
|
|
|
1198f7 |
&time01);
|
|
|
1198f7 |
VERIFY( errorstate == ios_base::failbit );
|
|
|
1198f7 |
- VERIFY( *ret01 == L'2' );
|
|
|
1198f7 |
+ VERIFY( *ret01 == L'6' );
|
|
|
1198f7 |
|
|
|
1198f7 |
iss.str(L"04/38/71");
|
|
|
1198f7 |
iterator_type is_it02(iss);
|
|
|
1198f7 |
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
|
|
|
1198f7 |
index e6f53de4a55..c9d9896a6c0 100644
|
|
|
1198f7 |
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc
|
|
|
1198f7 |
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc
|
|
|
1198f7 |
@@ -76,8 +76,8 @@ void test01()
|
|
|
1198f7 |
errorstate = good;
|
|
|
1198f7 |
iterator_type ret03 = tim_get.get_year(is_it03, end, iss, errorstate,
|
|
|
1198f7 |
&time03);
|
|
|
1198f7 |
- VERIFY( time03.tm_year == 197 - 1900 );
|
|
|
1198f7 |
- VERIFY( errorstate == good );
|
|
|
1198f7 |
+ VERIFY( time03.tm_year == 3 );
|
|
|
1198f7 |
+ VERIFY( errorstate == ios_base::failbit );
|
|
|
1198f7 |
VERIFY( *ret03 == 'd' );
|
|
|
1198f7 |
|
|
|
1198f7 |
iss.str("71d71");
|
|
|
1198f7 |
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
|
|
|
1198f7 |
index ba95fb91520..e17712098f4 100644
|
|
|
1198f7 |
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc
|
|
|
1198f7 |
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc
|
|
|
1198f7 |
@@ -76,8 +76,8 @@ void test01()
|
|
|
1198f7 |
errorstate = good;
|
|
|
1198f7 |
iterator_type ret03 = tim_get.get_year(is_it03, end, iss, errorstate,
|
|
|
1198f7 |
&time03);
|
|
|
1198f7 |
- VERIFY( time03.tm_year == 197 - 1900 );
|
|
|
1198f7 |
- VERIFY( errorstate == good );
|
|
|
1198f7 |
+ VERIFY( time03.tm_year == 3 );
|
|
|
1198f7 |
+ VERIFY( errorstate == ios_base::failbit );
|
|
|
1198f7 |
VERIFY( *ret03 == L'd' );
|
|
|
1198f7 |
|
|
|
1198f7 |
iss.str(L"71d71");
|