Skip to content

Commit d29ac1e

Browse files
committed
Modify improper XFAIL checking by not running FileCheck if there are no improperly XFAIL-ed tests
1 parent 6463e50 commit d29ac1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test/e2e_test_requirements/no-xfail-without-tracker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// RUN: grep -v "XFAIL:" | \
3232
// RUN: grep -Pv "XFAIL-TRACKER:\s+(?:https://github.com/[\w\d-]+/[\w\d-]+/issues/[\d]+)|(?:[\w]+-[\d]+)" > %t
3333
// RUN: cat %t | wc -l | FileCheck %s --check-prefix NUMBER-OF-XFAIL-WITHOUT-TRACKER
34-
// RUN: cat %t | sed 's/\.cpp.*/.cpp/' | sort | FileCheck %s
34+
// RUN: cat %t | sed 's/\.cpp.*/.cpp/' | sort | wc - l | [ $(cat) -gt 0 ] && FileCheck %s --allow-unused-prefixes
3535
//
3636
// The number below is a number of tests which are *improperly* XFAIL-ed, i.e.
3737
// we either don't have a tracker associated with a failure listed in those

0 commit comments

Comments
 (0)