Skip to content

Commit

Permalink
Update test_parfor.cpp: not substr
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale authored Apr 5, 2024
1 parent e18d2f5 commit 21ee9e2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/sampler/test_parfor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,22 @@ TEST(SamplerTest, ktoEnvVarDefault) {
EXPECT_THAT(output.str(),
::testing::Contains("calling child-begin function...")
.::testing::Times("2"));

EXPECT_THAT(output.str(),
::testing::Contains("finished with child-begin function.")
.::testing::Times("2"));
EXPECT_THAT(
output.str(),
::testing::Contains("calling child-end function...").::testing::Times("2"));

EXPECT_THAT(output.str(),
::testing::Contains("finished with child-end function.")
.::testing::Times("2"));

EXPECT_THAT(output.str(),
::testing::Not("KokkosP: FATAL: Kokkos Tools Programming "
"Interface's tool-invoked Fence is NULL!"));
::testing::Not(::testing::HasSubstr("KokkosP: FATAL: No child library of sampler utility library to call")));

EXPECT_THAT(output.str(),
::testing::Not(::testing::HasSubstr("KokkosP: FATAL: Kokkos Tools Programming "
"Interface's tool-invoked Fence is NULL!")));
}

0 comments on commit 21ee9e2

Please sign in to comment.