From 0ca3aecffb8c3c8162ba7b8cf4d16a2e34a7ac3e Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 26 Jun 2024 09:09:03 +0200 Subject: Capture TargetCache by pointer in AnalyseContext --- .../build_engine/target_map/target_map.test.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/buildtool/build_engine/target_map/target_map.test.cpp') 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}; -- cgit v1.2.3