File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,9 @@ TEST_CASE("clock, time_t")
92
92
REQUIRE (clock::to_time_t (clock::from_time_t (now_tt)) == now_tt);
93
93
94
94
// Conversions are verified to be consistent. Now, verify that we're correctly converting epochs
95
- // Note that time_t has only 1s resolution, so we need to add 1 second of slop on either side.
96
- REQUIRE_ORDERED (now1_dt - 1s, clock::from_time_t (now_tt), now2_dt + 1s);
95
+ // Note that time_t has only 1s resolution, so we need to add 2 seconds of slop on either side.
96
+ // (One second for measurement error, and another second for rounding error.)
97
+ REQUIRE_ORDERED (now1_dt - 2s, clock::from_time_t (now_tt), now2_dt + 2s);
97
98
}
98
99
99
100
TEST_CASE (" clock, FILETIME" )
Original file line number Diff line number Diff line change @@ -7,11 +7,10 @@ namespace
7
7
{
8
8
static bool s_loggerCalled = false ;
9
9
10
- // Note that we are checking that the source line number matches expectations. If lines above this are changed
11
- // then this value needs to change as well.
12
10
void FailOnLine15 ()
13
11
{
14
12
// Validate that handler translated exception
13
+ #line 15 // Force next line to be reported as line number 15
15
14
REQUIRE_THROWS_AS (check_hresult (0x80000018 ), hresult_illegal_delegate_assignment);
16
15
}
17
16
You can’t perform that action at this time.
0 commit comments