diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2023-12-06 19:49:28 (GMT) |
---|---|---|
committer | Jan Niklas Hasse <jhasse@bixense.com> | 2023-12-06 19:49:28 (GMT) |
commit | 4d98903d4c986f720ddb3f18d32c1125ef3e680e (patch) | |
tree | 17180e557abef89aa1f396b3c3c83ffa508c29c6 /src/missing_deps_test.cc | |
parent | 8f47d5aa33c6c303a71093be2eac02672dfb2966 (diff) | |
download | Ninja-4d98903d4c986f720ddb3f18d32c1125ef3e680e.zip Ninja-4d98903d4c986f720ddb3f18d32c1125ef3e680e.tar.gz Ninja-4d98903d4c986f720ddb3f18d32c1125ef3e680e.tar.bz2 |
Improve misleading error message when an output is defined multiple times
Diffstat (limited to 'src/missing_deps_test.cc')
-rw-r--r-- | src/missing_deps_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/missing_deps_test.cc b/src/missing_deps_test.cc index 12ae8ed..dae377b 100644 --- a/src/missing_deps_test.cc +++ b/src/missing_deps_test.cc @@ -64,9 +64,9 @@ struct MissingDependencyScannerTest : public testing::Test { compile_rule_.AddBinding("deps", deps_type); generator_rule_.AddBinding("deps", deps_type); Edge* header_edge = state_.AddEdge(&generator_rule_); - state_.AddOut(header_edge, "generated_header", 0); + state_.AddOut(header_edge, "generated_header", 0, nullptr); Edge* compile_edge = state_.AddEdge(&compile_rule_); - state_.AddOut(compile_edge, "compiled_object", 0); + state_.AddOut(compile_edge, "compiled_object", 0, nullptr); } void CreateGraphDependencyBetween(const char* from, const char* to) { @@ -130,7 +130,7 @@ TEST_F(MissingDependencyScannerTest, MissingDepFixedIndirect) { CreateInitialState(); // Adding an indirect dependency also fixes the issue Edge* intermediate_edge = state_.AddEdge(&generator_rule_); - state_.AddOut(intermediate_edge, "intermediate", 0); + state_.AddOut(intermediate_edge, "intermediate", 0, nullptr); CreateGraphDependencyBetween("compiled_object", "intermediate"); CreateGraphDependencyBetween("intermediate", "generated_header"); RecordDepsLogDep("compiled_object", "generated_header"); |