File tree 2 files changed +19
-1
lines changed
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 %s
5
+
6
+ # ONE-CMD: bar
7
+
8
+ ## Test two commands inside curly brace.
9
+ # RUN: { echo foo; echo bar; } | FileCheck --check-prefix=TWO-CMDS %s
10
+
11
+ # TWO-CMDS: foo
12
+ # TWO-CMDS: bar
Original file line number Diff line number Diff line change 28
28
29
29
# CHECK: PASS: shtest-shell :: continuations.txt
30
30
31
+ # CHECK: FAIL: shtest-shell :: curly-brace.txt
32
+ # CHECK: # executed command: '{' echo bar
33
+ # CHECK-NEXT: # .---command stderr------------
34
+ # CHECK-NEXT: # | '{': command not found
35
+ # CHECK: error: command failed with exit status: 127
36
+
31
37
# CHECK: PASS: shtest-shell :: dev-null.txt
32
38
33
39
# CHECK: FAIL: shtest-shell :: diff-b.txt
635
641
636
642
# CHECK: PASS: shtest-shell :: valid-shell.txt
637
643
# CHECK: Unresolved Tests (1)
638
- # CHECK: Failed Tests (36 )
644
+ # CHECK: Failed Tests (37 )
You can’t perform that action at this time.
0 commit comments