summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_engine/executor/executor.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/executor/executor.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/executor/executor.test.cpp')
-rw-r--r--test/buildtool/execution_engine/executor/executor.test.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/buildtool/execution_engine/executor/executor.test.cpp b/test/buildtool/execution_engine/executor/executor.test.cpp
index dd9f59db..9dc2f667 100644
--- a/test/buildtool/execution_engine/executor/executor.test.cpp
+++ b/test/buildtool/execution_engine/executor/executor.test.cpp
@@ -234,9 +234,10 @@ class TestApi : public IExecutionApi {
-> std::pair<TestApiConfig, RepositoryConfig> {
using path = std::filesystem::path;
- auto const local_cpp_desc = ArtifactDescription{path{"local.cpp"}, ""};
- auto const known_cpp_desc = ArtifactDescription{
- ArtifactDigest{"known.cpp", 0, /*is_tree=*/false}, ObjectType::File};
+ auto const local_cpp_desc =
+ ArtifactDescription::CreateLocal(path{"local.cpp"}, "");
+ auto const known_cpp_desc = ArtifactDescription::CreateKnown(
+ ArtifactDigest{"known.cpp", 0, /*is_tree=*/false}, ObjectType::File);
auto const test_action_desc = ActionDescription{
{"output1.exe", "output2.exe"},