File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,11 @@ def mark_xfail(selected_tests, opts):
238
238
test_full_name = t .getFullName ()
239
239
if test_file in opts .xfail or test_full_name in opts .xfail :
240
240
t .xfails += "*"
241
- if test_file in opts .xfail_not or test_full_name in opts .xfail_not :
241
+ if (
242
+ test_file in opts .xfail_not
243
+ or test_full_name in opts .xfail_not
244
+ or opts .xfail_not == ["*" ]
245
+ ):
242
246
t .xfail_not = True
243
247
244
248
Original file line number Diff line number Diff line change 5
5
# RUN: %{inputs}/xfail-cl \
6
6
# RUN: | FileCheck --check-prefix=CHECK-FILTER %s
7
7
8
+ # RUN: %{lit} --xfail 'false.txt;false2.txt;top-level-suite :: b :: test.txt' \
9
+ # RUN: --xfail-not '*' \
10
+ # RUN: %{inputs}/xfail-cl \
11
+ # RUN: | FileCheck --check-prefix=CHECK-FILTER %s
12
+
8
13
# RUN: env LIT_XFAIL='false.txt;false2.txt;top-level-suite :: b :: test.txt' \
9
14
# RUN: LIT_XFAIL_NOT='true-xfail.txt;top-level-suite :: a :: test-xfail.txt' \
10
15
# RUN: %{lit} %{inputs}/xfail-cl \
11
16
# RUN: | FileCheck --check-prefix=CHECK-FILTER %s
12
17
18
+ # RUN: env LIT_XFAIL='false.txt;false2.txt;top-level-suite :: b :: test.txt' \
19
+ # RUN: LIT_XFAIL_NOT='*' \
20
+ # RUN: %{lit} %{inputs}/xfail-cl \
21
+ # RUN: | FileCheck --check-prefix=CHECK-FILTER %s
22
+
13
23
# Check that --xfail-not and LIT_XFAIL_NOT always have precedence.
14
24
15
25
# RUN: env LIT_XFAIL=true-xfail.txt \
You can’t perform that action at this time.
0 commit comments