Skip to content

Commit 98504fb

Browse files
committed
Make shtest-format.py CHECK lines more flexible
The test sometimes fails on Windows due to a warning emitted by bash about not being able to find the /tmp directory causing this test to randomly fail. This update makes the test more flexible to account for this possibility and should hopefully make it more reliable. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D118691
1 parent 957b24c commit 98504fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/utils/lit/tests/shtest-format.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
# CHECK-NEXT: line 2: failed test output on stdout
1818
# CHECK: Command Output (stderr):
1919
# CHECK-NEXT: --
20-
# CHECK-NEXT: cat{{(_64)?(\.exe)?}}: {{cannot open does-not-exist|does-not-exist: No such file or directory}}
20+
# CHECK-NOT: --
21+
# CHECK: cat{{(_64)?(\.exe)?}}: {{cannot open does-not-exist|does-not-exist: No such file or directory}}
2122
# CHECK: --
2223

2324
# CHECK: FAIL: shtest-format :: external_shell/fail_with_bad_encoding.txt

0 commit comments

Comments
 (0)