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 9e3a6fc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 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
2 changes: 1 addition & 1 deletion geospatial/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ target_include_directories(${geospatial_target}
${GDAL_INCLUDE_DIR})

ign_build_tests(TYPE UNIT SOURCES ${gtest_sources}
LIB_DEPS ${geospatial_target})
LIB_DEPS ${geospatial_target} ignition-common${IGN_COMMON_VER}-testing)
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,6 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_COMMON_TESTING_DETAIL_AUTOLOGFIXTURE_HH_
#define IGNITION_COMMON_TESTING_DETAIL_AUTOLOGFIXTURE_HH_

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

Expand Down Expand Up @@ -66,7 +68,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 +106,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 9e3a6fc

Please sign in to comment.