Skip to content

Commit

Permalink
[Test-linux] Add more output to failing time metadata tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Jun 19, 2024
1 parent 4ccbc8f commit 67b51a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/test_bitinputarchive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,8 @@ TEMPLATE_TEST_CASE( "BitInputArchive: Extracting an archive to the filesystem sh
#else
const auto modifiedTime = chrono::duration_cast< chrono::seconds >( fs::last_write_time( expectedFile ).time_since_epoch() );
// Note: Using count() since Catch2 cannot print std::chrono::duration objects.
INFO( "System clock's now: " << static_cast< std::uint64_t >( std::chrono::system_clock::now().time_since_epoch().count() ) )
INFO( "File clock's now: " << static_cast< std::uint64_t >(fs::file_time_type::clock::now().time_since_epoch().count() ) )
REQUIRE( modifiedTime.count() == expectedModifiedTime.count() );
#endif

Expand Down

0 comments on commit 67b51a1

Please sign in to comment.