This commit is contained in:
Laurent Perron
2025-02-20 11:12:08 +01:00
committed by Corentin Le Molgat
parent 98325ced91
commit 668cc8a1cf
2 changed files with 3 additions and 3 deletions

View File

@@ -73,6 +73,6 @@ if(BUILD_TESTING)
GTest::gtest_main
GTest::gmock
COMPILE_DEFINITIONS
-DROOT_DIR="$<$<BOOL:${isMultiConfig}>:../>../../"
-DROOT_DIR="${CMAKE_SOURCE_DIR}"
)
endif()

View File

@@ -26,7 +26,7 @@ namespace operations_research {
namespace {
#if not defined(ROOT_DIR)
#define ROOT_DIR "_main/"
#define ROOT_DIR "_main"
#endif
TEST(SimpleMaxFlowTest, EmptyWithValidSourceAndSink) {
@@ -175,7 +175,7 @@ TEST(SimpleMaxFlowTest, ProblematicProblemWithMaxCapacity) {
ASSERT_OK_AND_ASSIGN(
FlowModelProto model,
ReadFileToProto<FlowModelProto>(file::JoinPathRespectAbsolute(
::testing::SrcDir(), ROOT_DIR "ortools/graph/testdata/"
::testing::SrcDir(), ROOT_DIR "/ortools/graph/testdata/"
"max_flow_test1.pb.txt")));
SimpleMaxFlow solver;
EXPECT_EQ(SimpleMaxFlow::OPTIMAL, LoadAndSolveFlowModel(model, &solver));