Browse Source

Delete temp log file before each unit test run

QGC4.4
Don Gagne 11 years ago
parent
commit
fbf8ebb0cf
  1. 3
      src/qgcunittest/UnitTest.cc

3
src/qgcunittest/UnitTest.cc

@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
#include "UnitTest.h"
#include "QGCApplication.h"
#include "MAVLinkProtocol.h"
bool UnitTest::_messageBoxRespondedTo = false;
bool UnitTest::_badResponseButton = false;
@ -115,6 +116,8 @@ void UnitTest::init(void) @@ -115,6 +116,8 @@ void UnitTest::init(void)
// Each test gets a clean global state
qgcApp()->destroySingletonsForUnitTest();
qgcApp()->createSingletonsForUnitTest();
MAVLinkProtocol::deleteTempLogFiles();
}
/// @brief Called after each test.

Loading…
Cancel
Save