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.
This commit is contained in:
parent
7bfea0aedb
commit
5525dd754b
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue