Skip to content

Commit

Permalink
Use buildStdContext helper in domain tests
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Rift <anna.rift@hpe.com>
  • Loading branch information
riftEmber committed Oct 4, 2024
1 parent f47c972 commit f7241a7
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions frontend/test/resolution/testDomains.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,8 @@ static void testRectangular(std::string domainType,
int rank,
std::string idxType,
std::string strides) {
Context::Configuration config;
config.chplHome = getenv("CHPL_HOME");
Context ctx(config);
Context* context = &ctx;
setupModuleSearchPaths(context, false, false, {}, {});
auto ctx = buildStdContext();
auto context = ctx.get();
ErrorGuard guard(context);

std::string program =
Expand Down Expand Up @@ -379,11 +376,8 @@ static void testBadDomain(std::string domainType) {

// With standard modules
{
Context::Configuration config;
config.chplHome = getenv("CHPL_HOME");
Context ctx(config);
Context* context = &ctx;
setupModuleSearchPaths(context, false, false, {}, {});
auto ctx = buildStdContext();
auto context = ctx.get();
ErrorGuard guard(context);

testBadDomainHelper(domainType, context, guard);
Expand Down

0 comments on commit f7241a7

Please sign in to comment.