Skip to content

Commit

Permalink
Use TestFactory for CMakeTestPath
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Nov 9, 2023
1 parent c604202 commit 34455da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/src/CMakeTestPaths_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ TEST(CMakeTestPaths, TestBuildType)
/////////////////////////////////////////////////
TEST(CMakeTestPaths, ProjectSourcePath)
{
gz::common::testing::CMakeTestPaths testPaths;
auto testPaths = TestPathFactory(kTestingProjectSourceDir);

std::string sourceDir;
ASSERT_TRUE(testPaths.ProjectSourcePath(sourceDir));
ASSERT_TRUE(testPaths->ProjectSourcePath(sourceDir));
ASSERT_FALSE(sourceDir.empty());
ASSERT_TRUE(exists(sourceDir)) << sourceDir;
ASSERT_TRUE(isDirectory(sourceDir));
Expand All @@ -81,10 +81,10 @@ TEST(CMakeTestPaths, ProjectSourcePath)
/////////////////////////////////////////////////
TEST(CMakeTestPaths, TestTmpPath)
{
gz::common::testing::CMakeTestPaths testPaths;
auto testPaths = TestPathFactory(kTestingProjectSourceDir);

std::string tmpDir;
ASSERT_TRUE(testPaths.TestTmpPath(tmpDir));
ASSERT_TRUE(testPaths->TestTmpPath(tmpDir));
ASSERT_FALSE(tmpDir.empty());
ASSERT_TRUE(exists(tmpDir)) << tmpDir;
ASSERT_TRUE(isDirectory(tmpDir));
Expand Down

0 comments on commit 34455da

Please sign in to comment.