Skip to content

Commit 0744710

Browse files
committed
Fix logic error in isKnownFailureOn.
1 parent bdb235e commit 0744710

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/conformance/testing/include/uur/known_failure.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ inline bool isKnownFailureOn(const DeviceTuple &param,
116116
const std::vector<Matcher> &matchers) {
117117
for (const auto &matcher : matchers) {
118118
auto adapterInfo = detail::getAdapterInfo(param.adapter);
119-
if (matcher.adapterVersion != adapterInfo.version &&
120-
matcher.backend != adapterInfo.backend) {
119+
if (matcher.backend != adapterInfo.backend) {
120+
continue;
121+
}
122+
if(matcher.adapterVersion != adapterInfo.version) {
121123
continue;
122124
}
123125
if (matcher.names.empty()) {

0 commit comments

Comments
 (0)