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