Blame SOURCES/0004-operator-istream-char-N-eofbit-fixes-are-not-availab.patch

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