Skip to content

Commit 5ea38b8

Browse files
authored
[lit][NFC] Avoid unintended -EMPTY suffix in check prefix (#99690)
FileCheck has special handline for the `-EMPTY` suffix, that should match empty lines. Overloading the suffix can be a source of confusion when reading tests. Additionally, the current implementation seems to match the following expressions, which appears to be a bug in FileCheck.
1 parent 2b78303 commit 5ea38b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/utils/lit/tests/Inputs/shtest-env/env-calls-env.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Check that internal env can call internal env.
22

33
# RUN: env env %{python} print_environment.py \
4-
# RUN: | FileCheck -check-prefix=CHECK-2-EMPTY %s
4+
# RUN: | FileCheck -check-prefix=CHECK-2-EMPTY-ARGS %s
55
#
6-
# CHECK-2-EMPTY: BAR = 2
7-
# CHECK-2-EMPTY: FOO = 1
6+
# CHECK-2-EMPTY-ARGS: BAR = 2
7+
# CHECK-2-EMPTY-ARGS: FOO = 1
88

99
# RUN: env FOO=2 env BAR=1 %{python} print_environment.py \
1010
# RUN: | FileCheck -check-prefix=CHECK-2-VAL %s

0 commit comments

Comments
 (0)