fix #4557
This commit is contained in:
committed by
Corentin Le Molgat
parent
98325ced91
commit
668cc8a1cf
@@ -73,6 +73,6 @@ if(BUILD_TESTING)
|
||||
GTest::gtest_main
|
||||
GTest::gmock
|
||||
COMPILE_DEFINITIONS
|
||||
-DROOT_DIR="$<$<BOOL:${isMultiConfig}>:../>../../"
|
||||
-DROOT_DIR="${CMAKE_SOURCE_DIR}"
|
||||
)
|
||||
endif()
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user