Skip to content

Commit 5b8936b

Browse files
[𝘀𝗽𝗿] initial version
Created using spr 1.3.6
2 parents b869dfc + 4b43d2f commit 5b8936b

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

llvm/test/MC/COFF/stdin.s

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
// REQUIRES: shell
2-
// RUN: ( echo "test"; llvm-mc -filetype=obj -triple i686-pc-win32 %s ) > %t
3-
1+
// RUN: bash -c '(echo "test"; llvm-mc -filetype=obj -triple i686-pc-win32 %s ) > %t'

llvm/test/Other/pipefail.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Check that we fail if earlier operations in a pipe fail.
2+
#
3+
# RUN: false | echo test
4+
#

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Check the internal shell handling component of the ShTest format.
22

33
# RUN: not %{lit} -v %{inputs}/shtest-shell > %t.out
4+
# RUN: cat %t.out > /tmp/test
45
# RUN: FileCheck --input-file %t.out %s
56
#
67
# Test again in non-UTF shell to catch potential errors with python 2 seen
@@ -580,6 +581,11 @@
580581
# CHECK: # error: command failed with exit status: 127
581582
# CHECK: ***
582583

584+
# CHECK: FAIL: shtest-shell :: pipefail.txt
585+
# CHECK: *** TEST 'shtest-shell :: pipefail.txt' FAILED ***
586+
# CHECK: error: command failed with exit status: 1
587+
# CHECK: ***
588+
583589
# CHECK: PASS: shtest-shell :: redirects.txt
584590

585591
# CHECK: FAIL: shtest-shell :: rm-error-0.txt
@@ -629,4 +635,4 @@
629635

630636
# CHECK: PASS: shtest-shell :: valid-shell.txt
631637
# CHECK: Unresolved Tests (1)
632-
# CHECK: Failed Tests (36)
638+
# CHECK: Failed Tests (37)

0 commit comments

Comments
 (0)