public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-6566] libstdc++: Add dg-output to two tests
@ 2023-12-15 0:01 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-12-15 0:01 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:0c773209fc9d0b5fa04f4055bdc2ff9746a1999d
commit r14-6566-g0c773209fc9d0b5fa04f4055bdc2ff9746a1999d
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Dec 11 22:58:46 2023 +0000
libstdc++: Add dg-output to two tests
These tests are expected to run interactively, with the output checked
by eye. Nobody ever does that, but we can at least use dg-output to
check that the output is as expected.
libstdc++-v3/ChangeLog:
* testsuite/27_io/objects/char/2.cc: Use dg-output.
* testsuite/27_io/objects/wchar_t/2.cc: Use dg-output.
Diff:
---
libstdc++-v3/testsuite/27_io/objects/char/2.cc | 2 ++
libstdc++-v3/testsuite/27_io/objects/wchar_t/2.cc | 2 ++
2 files changed, 4 insertions(+)
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/2.cc b/libstdc++-v3/testsuite/27_io/objects/char/2.cc
index b6c49bac6f3..9026a3cbad8 100644
--- a/libstdc++-v3/testsuite/27_io/objects/char/2.cc
+++ b/libstdc++-v3/testsuite/27_io/objects/char/2.cc
@@ -38,6 +38,8 @@ void test04()
cout.flush();
}
+// { dg-output "hello fine world" }
+
int
main()
{
diff --git a/libstdc++-v3/testsuite/27_io/objects/wchar_t/2.cc b/libstdc++-v3/testsuite/27_io/objects/wchar_t/2.cc
index 52a21b8dc22..2e47aba7c3c 100644
--- a/libstdc++-v3/testsuite/27_io/objects/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/27_io/objects/wchar_t/2.cc
@@ -38,6 +38,8 @@ void test04()
wcout.flush();
}
+// { dg-output "hello fine world" }
+
int
main()
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-15 0:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-15 0:01 [gcc r14-6566] libstdc++: Add dg-output to two tests Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).