From 6539b8685fa5cc79b9e140e12f84a88e984ff288 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 29 Aug 2022 17:48:57 +0200 Subject: [PATCH] Update utBaseProcess.cpp --- test/unit/Common/utBaseProcess.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/unit/Common/utBaseProcess.cpp b/test/unit/Common/utBaseProcess.cpp index 2da5c18b0..004267c2c 100644 --- a/test/unit/Common/utBaseProcess.cpp +++ b/test/unit/Common/utBaseProcess.cpp @@ -101,5 +101,10 @@ TEST_F( BaseProcessTest, constructTest ) { TEST_F( BaseProcessTest, executeOnSceneTest ) { TestingBaseProcess process; process.ExecuteOnScene(nullptr); +#ifdef DEBUG EXPECT_TRUE(BaseProcessTest::handlerWasCalled()); +#else + EXPECT_FALSE(BaseProcessTest::handlerWasCalled()); +#endif + }