diff --git a/src/qgcunittest/UnitTest.cc b/src/qgcunittest/UnitTest.cc index a00627e08aa2d626ed9e0b7891843380853df603..29366633c005587d1f83b0a807c1bf5e2b57cedd 100644 --- a/src/qgcunittest/UnitTest.cc +++ b/src/qgcunittest/UnitTest.cc @@ -87,7 +87,6 @@ void UnitTest::initTestCase(void) { _initTestCaseCalled = true; - _activeUnitTest = this; _missedMessageBoxCount = 0; _badResponseButton = false; } @@ -97,10 +96,7 @@ void UnitTest::initTestCase(void) void UnitTest::cleanupTestCase(void) { _cleanupTestCaseCalled = true; - - Q_ASSERT(_activeUnitTest != NULL); - _activeUnitTest = NULL; - + int missedMessageBoxCount = _missedMessageBoxCount; _missedMessageBoxCount = 0;