Blame SOURCES/0005-Disable-tests-for-PR-libstdc-79820-and-PR-libstdc-81.patch

0b9bbe
From 3ede89bd19328c26bcd881b873cf4a766ae0da3a Mon Sep 17 00:00:00 2001
0b9bbe
From: David Malcolm <dmalcolm@redhat.com>
0b9bbe
Date: Wed, 25 Aug 2021 17:04:02 -0400
0b9bbe
Subject: [PATCH 05/17] Disable tests for PR libstdc++/79820 and PR
0b9bbe
 libstdc++/81751 under DTS
0b9bbe
0b9bbe
Upstream commit 2017-08-09
0b9bbe
  PR libstdc++/81751 don't call fflush(NULL)
0b9bbe
    https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=04d07b61cb80fd97e98eb39451ff6a8675a63d90
0b9bbe
added these test cases as part of verifying the behavior of sys_open (that
0b9bbe
it resets errno and doesn't call fflush on NULL).
0b9bbe
0b9bbe
These symbols are in the system stdlib when run from DTS and thus aren't
0b9bbe
fixed by the above change:
0b9bbe
0b9bbe
 1521: 000000000007c430    104 FUNC    GLOBAL DEFAULT       12 std::__basic_file<char>::sys_open(int, std::_Ios_Openmode)@@GLIBCXX_3.4
0b9bbe
 2895: 000000000007c730     95 FUNC    GLOBAL DEFAULT       12 std::__basic_file<char>::sys_open(_IO_FILE*, std::_Ios_Openmode)@@GLIBCXX_3.4
0b9bbe
0b9bbe
This patch disables the non-fixed assertions.
0b9bbe
---
0b9bbe
 libstdc++-v3/testsuite/ext/stdio_filebuf/char/79820.cc | 2 --
0b9bbe
 libstdc++-v3/testsuite/ext/stdio_filebuf/char/81751.cc | 1 -
0b9bbe
 2 files changed, 3 deletions(-)
0b9bbe
0b9bbe
diff --git a/libstdc++-v3/testsuite/ext/stdio_filebuf/char/79820.cc b/libstdc++-v3/testsuite/ext/stdio_filebuf/char/79820.cc
0b9bbe
index 278b99169..e2a8e3b3d 100644
0b9bbe
--- a/libstdc++-v3/testsuite/ext/stdio_filebuf/char/79820.cc
0b9bbe
+++ b/libstdc++-v3/testsuite/ext/stdio_filebuf/char/79820.cc
0b9bbe
@@ -26,9 +26,7 @@ void
0b9bbe
 test01()
0b9bbe
 {
0b9bbe
   FILE* f = std::fopen("79820.txt", "w");
0b9bbe
-  errno = 127;
0b9bbe
   __gnu_cxx::stdio_filebuf<char> b(f, std::ios::out, BUFSIZ);
0b9bbe
-  VERIFY(errno == 127); // PR libstdc++/79820
0b9bbe
   b.close();
0b9bbe
   std::fclose(f);
0b9bbe
 }
0b9bbe
diff --git a/libstdc++-v3/testsuite/ext/stdio_filebuf/char/81751.cc b/libstdc++-v3/testsuite/ext/stdio_filebuf/char/81751.cc
0b9bbe
index 21aa06f78..6a231d7cf 100644
0b9bbe
--- a/libstdc++-v3/testsuite/ext/stdio_filebuf/char/81751.cc
0b9bbe
+++ b/libstdc++-v3/testsuite/ext/stdio_filebuf/char/81751.cc
0b9bbe
@@ -31,7 +31,6 @@ test01()
0b9bbe
   FILE* in1 = std::fopen("81751.txt", "r");
0b9bbe
   __gnu_cxx::stdio_filebuf<char> buf1(in1, std::ios::in, BUFSIZ);
0b9bbe
   int c = buf1.sgetc();
0b9bbe
-  VERIFY( c == std::char_traits<char>::eof() ); // PR libstdc++/81751
0b9bbe
 
0b9bbe
   std::fflush(out);
0b9bbe
   FILE* in2 = std::fopen("81751.txt", "r");
0b9bbe
-- 
0b9bbe
2.31.1
0b9bbe