mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-16 02:54:21 +00:00
Merge commit 'cc75948d1c7f732d102c8e31dc007a2ccd07761f' into develop
This commit is contained in:
@@ -339,4 +339,22 @@ void HipStatusMatcher::DescribeNegationTo(std::ostream* os) const
|
||||
return ::testing::MakeMatcher(new HipStatusMatcher(error));
|
||||
}
|
||||
|
||||
bool RunResultMatcher::MatchAndExplain(builder::test::RunResult actual,
|
||||
::testing::MatchResultListener* listener) const
|
||||
{
|
||||
if(actual.error.has_value() && listener)
|
||||
*listener << "run failed: " << actual.error.value();
|
||||
|
||||
return actual.is_supported();
|
||||
}
|
||||
|
||||
void RunResultMatcher::DescribeTo(std::ostream* os) const { *os << "successful run"; }
|
||||
|
||||
void RunResultMatcher::DescribeNegationTo(std::ostream* os) const { *os << "unsuccessful run"; }
|
||||
|
||||
::testing::Matcher<builder::test::RunResult> SuccessfulRun()
|
||||
{
|
||||
return ::testing::MakeMatcher(new RunResultMatcher());
|
||||
}
|
||||
|
||||
} // namespace ck_tile::test
|
||||
|
||||
Reference in New Issue
Block a user