Commit deaec22f authored by Andreas Tille's avatar Andreas Tille

Skip test relying on clock setting

parent dac79469
pbcopper (0.4.1+dfsg-3) UNRELEASED; urgency=medium
* Skip test relying on clock setting (Thanks for the patch to
Santiago Vila <sanvila@debian.org>)
Closes: #927239
-- Andreas Tille <tille@debian.org> Wed, 17 Apr 2019 08:03:22 +0200
pbcopper (0.4.1+dfsg-2) unstable; urgency=medium
* Team upload.
......
git-version.patch
skip_test_relying_on_clock.patch
From: Santiago Vila <sanvila@debian.org>
Date: Tue, 16 Apr 2019 18:18:14 +0000
Bug-Debian: https://bugs.debian.org/927239
Description: Prevent random build failures due to different clock settings
--- a/tests/src/utility/test_Stopwatch.cpp
+++ b/tests/src/utility/test_Stopwatch.cpp
@@ -56,12 +56,12 @@ TEST(Utility_Stopwatch, determines_elaps
ASSERT_LE(elapsed, 30000);
}
-TEST(Utility_Stopwatch, determines_elapsed_time_since_reset)
-{
- Stopwatch s;
- std::this_thread::sleep_for(std::chrono::milliseconds(3));
- s.Reset();
- std::this_thread::sleep_for(std::chrono::milliseconds(3));
- auto elapsed = s.ElapsedMilliseconds();
- ASSERT_FLOAT_EQ(3, elapsed);
-}
+// TEST(Utility_Stopwatch, determines_elapsed_time_since_reset)
+// {
+// Stopwatch s;
+// std::this_thread::sleep_for(std::chrono::milliseconds(3));
+// s.Reset();
+// std::this_thread::sleep_for(std::chrono::milliseconds(3));
+// auto elapsed = s.ElapsedMilliseconds();
+// ASSERT_FLOAT_EQ(3, elapsed);
+// }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment