diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-01-22 10:48:55 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-01-30 14:50:07 +0000 |
commit | 5525dd754b84cef3afe43dc7fdf27664873f137b (patch) | |
tree | 0425c2be80f32a73ccdb8dcfe16545ecea2d2c4b | |
parent | 7bfea0aedbce3f33a783bbb47f39724a58d19f73 (diff) | |
download | gcc-5525dd754b84cef3afe43dc7fdf27664873f137b.zip gcc-5525dd754b84cef3afe43dc7fdf27664873f137b.tar.gz gcc-5525dd754b84cef3afe43dc7fdf27664873f137b.tar.bz2 |
libstdc++: Fix check in testsuite/std/time/clock/gps/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/gps/io.cc: Fix expected result in
assertion and call test_format() from main.
-rw-r--r-- | libstdc++-v3/testsuite/std/time/clock/gps/io.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/std/time/clock/gps/io.cc b/libstdc++-v3/testsuite/std/time/clock/gps/io.cc index 5d15713..d5405f6 100644 --- a/libstdc++-v3/testsuite/std/time/clock/gps/io.cc +++ b/libstdc++-v3/testsuite/std/time/clock/gps/io.cc @@ -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(); } |