Package: opensurgsim / 0.7.0-11

disable-sensitive-tests.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Disables two sensitive unit tests
 A couple of unit tests fail sporatically due to being overly sensitive, and
 probably not giving useful information. This disables the three tests.
Author: Paul Novotny <paul@paulnovo.us>
Last-Update: 2016-10-24

--- a/SurgSim/Framework/UnitTests/BasicThreadTests.cpp
+++ b/SurgSim/Framework/UnitTests/BasicThreadTests.cpp
@@ -153,7 +153,7 @@
 	m.stop();
 }
 
-TEST(BasicThreadTest, PauseResumeUpdateTest)
+TEST(BasicThreadTest, DISABLED_PauseResumeUpdateTest)
 {
 	MockThread m(100000000);
 	int previousCount = m.count;
@@ -270,7 +270,7 @@
 	m.stop();
 }
 
-TEST(BasicThreadTest, RealTimings)
+TEST(BasicThreadTest, DISABLED_RealTimings)
 {
 	MockThread m;
 	m.start(nullptr);
--- a/SurgSim/Framework/UnitTests/TimerTest.cpp
+++ b/SurgSim/Framework/UnitTests/TimerTest.cpp
@@ -59,7 +59,7 @@
 	EXPECT_TRUE(timer->isBufferFull());
 }
 
-TEST(TimerTest, Comparison)
+TEST(TimerTest, DISABLED_Comparison)
 {
 	std::shared_ptr<Timer> timer1 = std::make_shared<Timer>();
 	std::shared_ptr<Timer> timer2 = std::make_shared<Timer>();