diff --git a/tests/sampler/test_parscan.cpp b/tests/sampler/test_parscan.cpp index 1913eb78a..3b1f69452 100644 --- a/tests/sampler/test_parscan.cpp +++ b/tests/sampler/test_parscan.cpp @@ -8,6 +8,9 @@ using ::testing::HasSubstr; using ::testing::Not; +using ::testing::Contains; +using ::testing::Times; + struct Tester { template explicit Tester(const execution_space& space) { @@ -69,6 +72,20 @@ TEST(SamplerTest, ktoEnvVarDefault) { EXPECT_THAT(output.str(), HasSubstr(matcher)); } + EXPECT_THAT(output.str(), + ::testing::Contains.Times(static_cast(2), + "calling child-begin function...")); + EXPECT_THAT(output.str(), + ::testing::Contains.Times(static_cast(2), + "finished with child-begin function.")); + + EXPECT_THAT(output.str(), + ::testing::Contains.Times(static_cast(2), + "calling child-end function...")); + EXPECT_THAT(output.str(), + ::testing::Contains.Times(static_cast(2), + "finished with child-end function.")); + EXPECT_THAT(output.str(), Not(HasSubstr("KokkosP: FATAL: No child library of " "sampler utility library to call")));