Skip to content

Commit

Permalink
fix ctest compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl authored and eddelbuettel committed Sep 14, 2023
1 parent 2380afd commit de82254
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions libtiledbsoma/test/unit_managed_query.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<Context>();
auto [array, d0, a0, _] = create_array(uri, *ctx);

auto mq = ManagedQuery(array);
auto mq = ManagedQuery(array, ctx);
mq.submit_read();

auto results = mq.results();
Expand All @@ -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<Context>();
auto [array, d0, a0, _] = create_array(uri, *ctx);

auto mq = ManagedQuery(array);
auto mq = ManagedQuery(array, ctx);
mq.select_columns({"a0"});
mq.select_points<std::string>("d0", {"a"});
mq.submit_read();
Expand All @@ -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<Context>();
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();
Expand Down
2 changes: 1 addition & 1 deletion scripts/bld
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit de82254

Please sign in to comment.