diff --git a/tests/sampler/test_parscan.cpp b/tests/sampler/test_parscan.cpp index ff53d7db1..1913eb78a 100644 --- a/tests/sampler/test_parscan.cpp +++ b/tests/sampler/test_parscan.cpp @@ -29,14 +29,14 @@ struct Tester { }; static const std::vector matchers{ - "(.*)KokkosP: sample 51 calling child-begin function...(.*)", - "(.*)KokkosP: sample 51 finished with child-begin function.(.*)", - "(.*)KokkosP: sample 51 calling child-end function...(.*)", - "(.*)KokkosP: sample 51 finished with child-end function.(.*)", - "(.*)KokkosP: sample 102 calling child-begin function...(.*)", - "(.*)KokkosP: sample 102 finished with child-begin function.(.*)", - "(.*)KokkosP: sample 102 calling child-end function...(.*)", - "(.*)KokkosP: sample 102 finished with child-end function.(.*)"}; + "KokkosP: sample 51 calling child-begin function...", + "KokkosP: sample 51 finished with child-begin function.", + "KokkosP: sample 51 calling child-end function...", + "KokkosP: sample 51 finished with child-end function.", + "KokkosP: sample 102 calling child-begin function...", + "KokkosP: sample 102 finished with child-begin function.", + "KokkosP: sample 102 calling child-end function...", + "KokkosP: sample 102 finished with child-end function."}; /** * @test This test checks that the tool effectively samples. @@ -67,7 +67,7 @@ TEST(SamplerTest, ktoEnvVarDefault) { //! Analyze test output. for (const auto& matcher : matchers) { EXPECT_THAT(output.str(), HasSubstr(matcher)); - } // end TEST + } EXPECT_THAT(output.str(), Not(HasSubstr("KokkosP: FATAL: No child library of " "sampler utility library to call")));