diff options
Diffstat (limited to 'test/buildtool/execution_engine')
-rw-r--r-- | test/buildtool/execution_engine/dag/dag.test.cpp | 8 | ||||
-rw-r--r-- | test/buildtool/execution_engine/executor/executor_api.test.hpp | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/test/buildtool/execution_engine/dag/dag.test.cpp b/test/buildtool/execution_engine/dag/dag.test.cpp index 8bf188ee..fbd79ec2 100644 --- a/test/buildtool/execution_engine/dag/dag.test.cpp +++ b/test/buildtool/execution_engine/dag/dag.test.cpp @@ -287,14 +287,18 @@ TEST_CASE("Add executable and library", "[dag]") { TEST_CASE("AddAction(id, empty action description) fails", "[dag]") { DependencyGraph g; - CHECK(not g.AddAction(ActionDescription{{}, {}, Action{"id", {}, {}}, {}})); + CHECK(not g.AddAction(ActionDescription{ + {}, {}, Action{"id", std::vector<std::string>{}, {}}, {}})); } TEST_CASE("AddAction(Empty mandatory non-empty field in action description)", "[dag]") { DependencyGraph g; CHECK(not g.AddAction(ActionDescription{ - {"output0", "output1"}, {}, Action{"empty command", {}, {}}, {}})); + {"output0", "output1"}, + {}, + Action{"empty command", std::vector<std::string>{}, {}}, + {}})); CHECK(not g.AddAction(ActionDescription{ {}, {}, Action{"empty output", {"echo", "hello"}, {}}, {}})); } diff --git a/test/buildtool/execution_engine/executor/executor_api.test.hpp b/test/buildtool/execution_engine/executor/executor_api.test.hpp index 8ec43fb0..2043da88 100644 --- a/test/buildtool/execution_engine/executor/executor_api.test.hpp +++ b/test/buildtool/execution_engine/executor/executor_api.test.hpp @@ -556,7 +556,10 @@ static inline void TestUploadAndDownloadTrees( SECTION("Dot-path non-tree as action input") { auto action_inputs = ActionDescription::inputs_t{{".", foo_desc}}; ActionDescription action_desc{ - {"foo"}, {}, Action{"action_id", {"echo"}, {}}, action_inputs}; + {"foo"}, + {}, + Action{"action_id", std::vector<std::string>{"echo"}, {}}, + action_inputs}; REQUIRE(g.Add({action_desc})); auto const* action_node = g.ActionNodeWithId("action_id"); |