diff --git a/libtiledbsoma/test/unit_managed_query.cc b/libtiledbsoma/test/unit_managed_query.cc index 24b304073d..81b4f986e3 100644 --- a/libtiledbsoma/test/unit_managed_query.cc +++ b/libtiledbsoma/test/unit_managed_query.cc @@ -118,10 +118,10 @@ TEST_CASE("ManagedQuery: Basic execution test") { } std::string uri = "mem://unit-test-array"; - auto ctx = Context(); - auto [array, d0, a0, _] = create_array(uri, ctx); + auto ctx = std::make_shared(); + auto [array, d0, a0, _] = create_array(uri, *ctx); - auto mq = ManagedQuery(array); + auto mq = ManagedQuery(array, ctx); mq.submit_read(); auto results = mq.results(); @@ -136,10 +136,10 @@ TEST_CASE("ManagedQuery: Basic execution test") { TEST_CASE("ManagedQuery: Select test") { std::string uri = "mem://unit-test-array"; - auto ctx = Context(); - auto [array, d0, a0, _] = create_array(uri, ctx); + auto ctx = std::make_shared(); + auto [array, d0, a0, _] = create_array(uri, *ctx); - auto mq = ManagedQuery(array); + auto mq = ManagedQuery(array, ctx); mq.select_columns({"a0"}); mq.select_points("d0", {"a"}); mq.submit_read(); @@ -160,10 +160,10 @@ TEST_CASE("ManagedQuery: Select test") { TEST_CASE("ManagedQuery: Validity test") { std::string uri = "mem://unit-test-array"; - auto ctx = Context(); - auto [array, d0, a0, a0_valids] = create_array(uri, ctx); + auto ctx = std::make_shared(); + auto [array, d0, a0, a0_valids] = create_array(uri, *ctx); - auto mq = ManagedQuery(array); + auto mq = ManagedQuery(array, ctx); mq.submit_read(); auto results = mq.results(); diff --git a/scripts/bld b/scripts/bld index 5c0fec9203..ae889900e2 100755 --- a/scripts/bld +++ b/scripts/bld @@ -84,5 +84,5 @@ rm -rf build mkdir -p build cmake -B build -S libtiledbsoma -DCMAKE_BUILD_TYPE=${build} ${extra_opts} cmake --build build -j ${nproc} -cmake --build build --target install-libtiledbsoma +sudo cmake --build build --target install-libtiledbsoma cmake --build build/libtiledbsoma --target build_tests -j ${nproc}