summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_engine/traverser/traverser.test.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-07-11 13:22:16 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-12 15:43:37 +0200
commit1e1758e8c30d30df0ebeefbada1e5a8f74d8a350 (patch)
treeb5b87ab3d7b61a0dc0e89e14e28af78293c4a423 /test/buildtool/execution_engine/traverser/traverser.test.cpp
parent9362f6c426a6e10d0f77282364a0061ebf192375 (diff)
downloadjustbuild-1e1758e8c30d30df0ebeefbada1e5a8f74d8a350.tar.gz
Use static Create functions to construct ArtifactDescription
...instead of unobvious ctors relying on overload resolution.
Diffstat (limited to 'test/buildtool/execution_engine/traverser/traverser.test.cpp')
-rw-r--r--test/buildtool/execution_engine/traverser/traverser.test.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/buildtool/execution_engine/traverser/traverser.test.cpp b/test/buildtool/execution_engine/traverser/traverser.test.cpp
index 2354aaf1..150f3d8c 100644
--- a/test/buildtool/execution_engine/traverser/traverser.test.cpp
+++ b/test/buildtool/execution_engine/traverser/traverser.test.cpp
@@ -167,10 +167,9 @@ class TestProject {
command.emplace_back("BUILD");
for (auto const& output : outputs) {
command.push_back(output);
- auto const out_id = ArtifactDescription{
- action_id,
- std::filesystem::path{
- output}}.Id();
+ auto const out_id = ArtifactDescription::CreateAction(
+ action_id, std::filesystem::path{output})
+ .Id();
auto [_, is_inserted] = artifacts_to_be_built_.insert(out_id);
if (!is_inserted) {
return false;