From be1128f31724c7f249795b0c7d5159a9cb3eda42 Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Fri, 4 Nov 2022 10:40:46 -0500 Subject: [PATCH] Adjust therm_system test Signed-off-by: Michael Carroll --- test/integration/thermal_system.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/thermal_system.cc b/test/integration/thermal_system.cc index 26e7ffa68ba..8244f781fad 100644 --- a/test/integration/thermal_system.cc +++ b/test/integration/thermal_system.cc @@ -53,8 +53,8 @@ TEST_F(ThermalTest, GZ_UTILS_TEST_DISABLED_ON_MAC(TemperatureComponent)) { // Start server ServerConfig serverConfig; - serverConfig.SetSdfFile(std::string(PROJECT_SOURCE_PATH) + - "/test/worlds/thermal.sdf"); + serverConfig.SetSdfFile(common::joinPaths(PROJECT_BINARY_PATH, + "test", "worlds", "thermal.sdf")); Server server(serverConfig); EXPECT_FALSE(server.Running()); @@ -177,8 +177,8 @@ TEST_F(ThermalTest, GZ_UTILS_TEST_DISABLED_ON_MAC(ThermalSensorSystem)) { // Start server ServerConfig serverConfig; - serverConfig.SetSdfFile(common::joinPaths(PROJECT_SOURCE_PATH, - "test/worlds/thermal.sdf")); + serverConfig.SetSdfFile(common::joinPaths(PROJECT_BINARY_PATH, + "test", "worlds", "thermal.sdf")); Server server(serverConfig); EXPECT_FALSE(server.Running());