public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8334] libstdc++: Fix check in testsuite/std/time/clock/file/io.cc
@ 2024-01-22 13:06 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2024-01-22 13:06 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:8229214faea572cd7157015711540e92e396523a

commit r14-8334-g8229214faea572cd7157015711540e92e396523a
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Jan 22 10:48:55 2024 +0000

    libstdc++: Fix check in testsuite/std/time/clock/file/io.cc
    
    The test_format() function contained an incorrect assertion but wasn't
    actually being called from main.
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/std/time/clock/file/io.cc: Fix expected result in
            assertion and call test_format() from main.

Diff:
---
 libstdc++-v3/testsuite/std/time/clock/file/io.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/std/time/clock/file/io.cc b/libstdc++-v3/testsuite/std/time/clock/file/io.cc
index 3eee6bf5cc2..9ab9f10ec77 100644
--- a/libstdc++-v3/testsuite/std/time/clock/file/io.cc
+++ b/libstdc++-v3/testsuite/std/time/clock/file/io.cc
@@ -31,7 +31,7 @@ test_format()
   // PR libstdc++/113500
   auto ft = clock_cast<file_clock>(sys_days(2024y/January/21)) + 0ms + 2.5s;
   s = std::format("{}", ft);
-  VERIFY( s == "2024-01-17 00:00:02.500");
+  VERIFY( s == "2024-01-21 00:00:02.500");
 }
 
 void
@@ -54,5 +54,6 @@ test_parse()
 int main()
 {
   test_ostream();
+  test_format();
   test_parse();
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-22 13:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-22 13:06 [gcc r14-8334] libstdc++: Fix check in testsuite/std/time/clock/file/io.cc 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).