From 7cbecfe419f3cd4d88dbd9b88b6c9309483ad31f Mon Sep 17 00:00:00 2001 From: Vivek Kale <11766050+vlkale@users.noreply.github.com> Date: Fri, 5 Apr 2024 13:17:35 -0700 Subject: [PATCH] Update test_parfor.cpp: put in checks for number of calls and Null Ptr fence --- tests/sampler/test_parfor.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/sampler/test_parfor.cpp b/tests/sampler/test_parfor.cpp index 340c05ebb..de3f4df87 100644 --- a/tests/sampler/test_parfor.cpp +++ b/tests/sampler/test_parfor.cpp @@ -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!"))); + }