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 + }