From 34455dab617765bc3e8b88096620fd46582a4964 Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Thu, 9 Nov 2023 14:56:26 +0100 Subject: [PATCH] Use TestFactory for CMakeTestPath Signed-off-by: Jose Luis Rivero --- testing/src/CMakeTestPaths_TEST.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/src/CMakeTestPaths_TEST.cc b/testing/src/CMakeTestPaths_TEST.cc index b9730ff49..fb5047a00 100644 --- a/testing/src/CMakeTestPaths_TEST.cc +++ b/testing/src/CMakeTestPaths_TEST.cc @@ -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)); @@ -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));