|
|
9fbc78 |
From d7fae9f17479c44dae68483d457fc3fbb58c4b83 Mon Sep 17 00:00:00 2001
|
|
|
9fbc78 |
From: David Malcolm <dmalcolm@redhat.com>
|
|
|
9fbc78 |
Date: Wed, 25 Aug 2021 15:57:36 -0400
|
|
|
9fbc78 |
Subject: [PATCH 04/17] operator>>(istream&, char(&)[N]) eofbit fixes are not
|
|
|
9fbc78 |
available in DTS
|
|
|
9fbc78 |
|
|
|
9fbc78 |
The upstream commit on 2020-08--6:
|
|
|
9fbc78 |
Do not set eofbit eagerly in operator>>(istream&, char(&)[N])
|
|
|
9fbc78 |
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=4e39f563c0cd25401f689c2093cb8c13692156ef
|
|
|
9fbc78 |
altered the behaviour of std::istream symbols defined in libstdc++.so,
|
|
|
9fbc78 |
but with DTS you get the old definitions from the system libstdc++.so
|
|
|
9fbc78 |
|
|
|
9fbc78 |
Hence this patch tweaks the new tests to avoid failing when run against
|
|
|
9fbc78 |
the system libstdc++.so
|
|
|
9fbc78 |
---
|
|
|
9fbc78 |
.../21_strings/basic_string/inserters_extractors/char/13.cc | 1 -
|
|
|
9fbc78 |
.../21_strings/basic_string/inserters_extractors/wchar_t/13.cc | 1 -
|
|
|
9fbc78 |
2 files changed, 2 deletions(-)
|
|
|
9fbc78 |
|
|
|
9fbc78 |
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/13.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/13.cc
|
|
|
9fbc78 |
index a25d8a93d..7d85e6ead 100644
|
|
|
9fbc78 |
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/13.cc
|
|
|
9fbc78 |
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/13.cc
|
|
|
9fbc78 |
@@ -29,7 +29,6 @@ test01()
|
|
|
9fbc78 |
std::string buf;
|
|
|
9fbc78 |
in.width(4);
|
|
|
9fbc78 |
in >> buf;
|
|
|
9fbc78 |
- VERIFY( !in.eof() ); // should stop after reading 4 chars
|
|
|
9fbc78 |
VERIFY( buf == str );
|
|
|
9fbc78 |
}
|
|
|
9fbc78 |
|
|
|
9fbc78 |
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/13.cc b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/13.cc
|
|
|
9fbc78 |
index f15294a44..fa5fe3d4a 100644
|
|
|
9fbc78 |
--- a/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/13.cc
|
|
|
9fbc78 |
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/13.cc
|
|
|
9fbc78 |
@@ -29,7 +29,6 @@ test01()
|
|
|
9fbc78 |
std::wstring buf;
|
|
|
9fbc78 |
in.width(4);
|
|
|
9fbc78 |
in >> buf;
|
|
|
9fbc78 |
- VERIFY( !in.eof() ); // should stop after reading 4 chars
|
|
|
9fbc78 |
VERIFY( buf == str );
|
|
|
9fbc78 |
}
|
|
|
9fbc78 |
|
|
|
9fbc78 |
--
|
|
|
9fbc78 |
2.31.1
|
|
|
9fbc78 |
|