]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix check in testsuite/std/time/clock/gps/io.cc
authorJonathan Wakely <jwakely@redhat.com>
Mon, 22 Jan 2024 10:48:55 +0000 (10:48 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 30 Jan 2024 14:50:07 +0000 (14:50 +0000)
The test_format() function contained an incorrect assertion but wasn't
actually being called from main.

libstdc++-v3/ChangeLog:

* testsuite/std/time/clock/gps/io.cc: Fix expected result in
assertion and call test_format() from main.

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

index 5d15713c69ddcdbce9e50ca55938f07808d809e3..d5405f61520ae72ab38dbde5988eccd76a4bdd11 100644 (file)
@@ -42,7 +42,7 @@ test_format()
 
   // PR libstdc++/113500
   s = std::format("{}", gt + 150ms + 10.5s);
-  VERIFY( s == "2000-01-01 00:00:35.650" );
+  VERIFY( s == "2000-01-01 00:00:23.650" );
 }
 
 void
@@ -65,5 +65,6 @@ test_parse()
 int main()
 {
   test_ostream();
+  test_format();
   test_parse();
 }