From fbf8ebb0cf555c994a561b82dd7d8a3a261569f1 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 8 Dec 2014 17:35:11 -0800 Subject: [PATCH] Delete temp log file before each unit test run --- src/qgcunittest/UnitTest.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qgcunittest/UnitTest.cc b/src/qgcunittest/UnitTest.cc index 4c2869d25f..6df2a069e4 100644 --- a/src/qgcunittest/UnitTest.cc +++ b/src/qgcunittest/UnitTest.cc @@ -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) // Each test gets a clean global state qgcApp()->destroySingletonsForUnitTest(); qgcApp()->createSingletonsForUnitTest(); + + MAVLinkProtocol::deleteTempLogFiles(); } /// @brief Called after each test. -- GitLab