Skip to content

Commit

Permalink
Update test_parfor.cpp: put in checks for number of calls and Null Pt…
Browse files Browse the repository at this point in the history
…r fence
  • Loading branch information
vlkale authored Apr 5, 2024
1 parent 97da044 commit 7cbecfe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/sampler/test_parfor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ TEST(SamplerTest, ktoEnvVarDefault) {
EXPECT_THAT(output.str(), ::testing::HasSubstr(matcher));
} // end TEST

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

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

}

0 comments on commit 7cbecfe

Please sign in to comment.