Skip to content

Commit

Permalink
Fixup AutoLogFixture and tests that had transitive depends
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Mar 15, 2022
1 parent 85654e4 commit 377e67d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions events/src/Event_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <functional>
#include <ignition/common/Event.hh>
#include <ignition/common/Util.hh>

using namespace ignition;

Expand Down
1 change: 1 addition & 0 deletions test/integration/video_encoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// needed on MacOS
#include <cmath>

#include "ignition/common/Console.hh"
#include "ignition/common/VideoEncoder.hh"
#include "ignition/common/Video.hh"
#include "ignition/common/ffmpeg_inc.hh"
Expand Down
2 changes: 2 additions & 0 deletions testing/include/ignition/common/testing/AutoLogFixture.hh
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ class AutoLogFixture : public ::testing::Test
};
} // namespace ignition::common::testing

#include <ignition/common/testing/detail/AutoLogFixture.hh>

#endif // IGNITION_COMMON_TESTING_AUTOLOGFIXTURE_HH_
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@
* limitations under the License.
*
*/
#ifndef IGNITION_COMMON_TESTING_DETAIL_AUTOLOGFIXTURE_HH_
#define IGNITION_COMMON_TESTING_DETAIL_AUTOLOGFIXTURE_HH_

#include "ignition/common/testing/AutoLogFixture.hh"

#include <memory>
#include <string>

#include <ignition/common/Console.hh>
#include <ignition/common/Filesystem.hh>
#include <ignition/common/TempDirectory.hh>
Expand Down Expand Up @@ -66,7 +71,7 @@ void AutoLogFixture::SetUp()
this->dataPtr->logFilename = testCaseName + "_" + testName + ".log";

this->dataPtr->temp = std::make_unique<TempDirectory>(
"test", "ign_common", true);
"test", "ign_common", false);
ASSERT_TRUE(this->dataPtr->temp->Valid());
common::setenv(IGN_HOMEDIR, this->dataPtr->temp->Path());

Expand Down Expand Up @@ -104,3 +109,6 @@ std::string AutoLogFixture::LogContent() const
}

} // namespace ignition::common::testing

#endif // IGNITION_COMMON_TESTING_DETAIL_AUTOLOGFIXTURE_HH_

1 change: 0 additions & 1 deletion testing/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
set(sources
AutoLogFixture.cc
BazelTestPaths.cc
CMakeTestPaths.cc
TestPaths.cc
Expand Down

0 comments on commit 377e67d

Please sign in to comment.