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

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