Skip to content

Commit

Permalink
disable nanoseconds unit test case for testUnits on MacOS due to trun…
Browse files Browse the repository at this point in the history
…cation of duration to microseconds on MacOS
  • Loading branch information
rrsettgast committed Aug 3, 2024
1 parent 41b1018 commit b2e51fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreComponents/common/unitTests/testUnits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ TEST( Units, SystemDurationFormatTest )
using namespace std::chrono;

std::vector< DurationCase > durationCases = {

#if !defined(__APPLE__) // Apple silicon seems to truncate below microseconds
DurationCase(
"00h00m00s (1.11e-07 s)",
nanoseconds( 111 ) ),

#endif
DurationCase(
"00h00m00s (0.000111 s)",
microseconds( 111 ) ),
Expand Down

0 comments on commit b2e51fd

Please sign in to comment.