]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix check in testsuite/std/time/clock/file/io.cc
authorJonathan Wakely <jwakely@redhat.com>
Mon, 22 Jan 2024 10:48:55 +0000 (10:48 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 22 Jan 2024 13:06:00 +0000 (13:06 +0000)
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.

libstdc++-v3/testsuite/std/time/clock/file/io.cc

index 3eee6bf5cc28bd64e8122b264d7092d75cb81c07..9ab9f10ec778cbdd85d6c631d74c89d6543b51a9 100644 (file)
@@ -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();
 }