File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## Test curly braces used in grouping commands.
2
+
3
+ ## Test one command inside curly brace.
4
+ # RUN: { echo bar; } | FileCheck --check-prefix=ONE-CMD
5
+
6
+ # ONE-CMD: bar
7
+
8
+ ## Test two commands inside curly brace.
9
+ # RUN: { echo foo; echo bar; } | FileCheck --check-prefix=TWO-CMDS
10
+
11
+ # TWO-CMDS: foo
12
+ # TWO-CMDS: bar
Original file line number Diff line number Diff line change 44
44
45
45
# CHECK: PASS: shtest-shell :: continuations.txt
46
46
47
+ # CHECK: FAIL: shtest-shell :: curly-brace.txt
48
+ # CHECK: # executed command: '{' echo bar
49
+ # CHECK-NEXT: # .---command stderr------------
50
+ # CHECK-NEXT: # | '{': command not found
51
+ # CHECK: error: command failed with exit status: 127
52
+
47
53
# CHECK: PASS: shtest-shell :: dev-null.txt
48
54
49
55
# CHECK: FAIL: shtest-shell :: diff-b.txt
651
657
652
658
# CHECK: PASS: shtest-shell :: valid-shell.txt
653
659
# CHECK: Unresolved Tests (1)
654
- # CHECK: Failed Tests (38 )
660
+ # CHECK: Failed Tests (39 )
You can’t perform that action at this time.
0 commit comments