diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/miscellaneous/timer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/miscellaneous/timer.cpp b/test/miscellaneous/timer.cpp index aaac4e2f8e..7e5928406e 100644 --- a/test/miscellaneous/timer.cpp +++ b/test/miscellaneous/timer.cpp @@ -177,3 +177,11 @@ TEST(Timer, StartOverrides) { EXPECT_GE(totalTime, expectedTotalTime * 0.8); EXPECT_LE(totalTime, expectedTotalTime * 1.2); } + +TEST(Timer, CanStopNonStartedTimer) { + RunLoop loop; + + Timer timer; + timer.unref(); + timer.stop(); +} |