Package: opensurgsim / 0.7.0-11

Assert-death-only-if-supported.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
From: Ghislain Antony Vaillant <ghisvail@gmail.com>
Date: Mon, 5 Dec 2016 22:00:05 +0000
Subject: Assert death only if supported.

---
 SurgSim/Framework/UnitTests/RuntimeTest.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/SurgSim/Framework/UnitTests/RuntimeTest.cpp b/SurgSim/Framework/UnitTests/RuntimeTest.cpp
index d62918f..8293e25 100644
--- a/SurgSim/Framework/UnitTests/RuntimeTest.cpp
+++ b/SurgSim/Framework/UnitTests/RuntimeTest.cpp
@@ -63,7 +63,7 @@ TEST(RuntimeTest, InitFailureDeathTest)
 	runtime->addManager(managerSucceeds);
 	runtime->addManager(managerFails);
 
-	ASSERT_DEATH(runtime->start(), "");
+	ASSERT_DEATH_IF_SUPPORTED(runtime->start(), "");
 }
 
 TEST(RuntimeTest, StartupFailureDeathTest)
@@ -75,7 +75,7 @@ TEST(RuntimeTest, StartupFailureDeathTest)
 	runtime->addManager(managerSucceeds);
 	runtime->addManager(managerFails);
 
-	ASSERT_DEATH(runtime->start(), "");
+	ASSERT_DEATH_IF_SUPPORTED(runtime->start(), "");
 }
 
 TEST(RuntimeTest, SceneInitialization)