diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-26 09:09:03 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-27 11:24:20 +0200 |
commit | 0ca3aecffb8c3c8162ba7b8cf4d16a2e34a7ac3e (patch) | |
tree | ca66a26560338633b39ccd371838fcf97a9e8613 /test/buildtool/build_engine/target_map/target_map.test.cpp | |
parent | 3f75861a2d60fc5a2fd9c9894267f1df72f66c47 (diff) | |
download | justbuild-0ca3aecffb8c3c8162ba7b8cf4d16a2e34a7ac3e.tar.gz |
Capture TargetCache by pointer in AnalyseContext
Diffstat (limited to 'test/buildtool/build_engine/target_map/target_map.test.cpp')
-rw-r--r-- | test/buildtool/build_engine/target_map/target_map.test.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/buildtool/build_engine/target_map/target_map.test.cpp b/test/buildtool/build_engine/target_map/target_map.test.cpp index fa9e2890..fb75188f 100644 --- a/test/buildtool/build_engine/target_map/target_map.test.cpp +++ b/test/buildtool/build_engine/target_map/target_map.test.cpp @@ -102,7 +102,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, "simple targets", "[target_map]") { ApiBundle const apis{nullptr, RemoteExecutionConfig::RemoteAddress()}; auto serve = ServeApi::Create(*serve_config, &apis); AnalyseContext ctx{.repo_config = &repo_config, - .target_cache = Storage::Instance().TargetCache(), + .target_cache = &Storage::Instance().TargetCache(), .statistics = &stats, .progress = &exports_progress, .serve = serve}; @@ -545,7 +545,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, ApiBundle const apis{nullptr, RemoteExecutionConfig::RemoteAddress()}; auto serve = ServeApi::Create(*serve_config, &apis); AnalyseContext ctx{.repo_config = &repo_config, - .target_cache = Storage::Instance().TargetCache(), + .target_cache = &Storage::Instance().TargetCache(), .statistics = &stats, .progress = &exports_progress, .serve = serve}; @@ -633,7 +633,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, ApiBundle const apis{nullptr, RemoteExecutionConfig::RemoteAddress()}; auto serve = ServeApi::Create(*serve_config, &apis); AnalyseContext ctx{.repo_config = &repo_config, - .target_cache = Storage::Instance().TargetCache(), + .target_cache = &Storage::Instance().TargetCache(), .statistics = &stats, .progress = &exports_progress, .serve = serve}; @@ -731,7 +731,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, "built-in rules", "[target_map]") { ApiBundle const apis{nullptr, RemoteExecutionConfig::RemoteAddress()}; auto serve = ServeApi::Create(*serve_config, &apis); AnalyseContext ctx{.repo_config = &repo_config, - .target_cache = Storage::Instance().TargetCache(), + .target_cache = &Storage::Instance().TargetCache(), .statistics = &stats, .progress = &exports_progress, .serve = serve}; @@ -939,7 +939,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, "target reference", "[target_map]") { ApiBundle const apis{nullptr, RemoteExecutionConfig::RemoteAddress()}; auto serve = ServeApi::Create(*serve_config, &apis); AnalyseContext ctx{.repo_config = &repo_config, - .target_cache = Storage::Instance().TargetCache(), + .target_cache = &Storage::Instance().TargetCache(), .statistics = &stats, .progress = &exports_progress, .serve = serve}; @@ -1080,7 +1080,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, "trees", "[target_map]") { ApiBundle const apis{nullptr, RemoteExecutionConfig::RemoteAddress()}; auto serve = ServeApi::Create(*serve_config, &apis); AnalyseContext ctx{.repo_config = &repo_config, - .target_cache = Storage::Instance().TargetCache(), + .target_cache = &Storage::Instance().TargetCache(), .statistics = &stats, .progress = &exports_progress, .serve = serve}; @@ -1187,7 +1187,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, ApiBundle const apis{nullptr, RemoteExecutionConfig::RemoteAddress()}; auto serve = ServeApi::Create(*serve_config, &apis); AnalyseContext ctx{.repo_config = &repo_config, - .target_cache = Storage::Instance().TargetCache(), + .target_cache = &Storage::Instance().TargetCache(), .statistics = &stats, .progress = &exports_progress, .serve = serve}; @@ -1351,7 +1351,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, "wrong arguments", "[target_map]") { ApiBundle const apis{nullptr, RemoteExecutionConfig::RemoteAddress()}; auto serve = ServeApi::Create(*serve_config, &apis); AnalyseContext ctx{.repo_config = &repo_config, - .target_cache = Storage::Instance().TargetCache(), + .target_cache = &Storage::Instance().TargetCache(), .statistics = &stats, .progress = &exports_progress, .serve = serve}; |