summaryrefslogtreecommitdiff
path: root/t/chainlint/while-loop.expect
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/while-loop.expect')
-rw-r--r--t/chainlint/while-loop.expect14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/chainlint/while-loop.expect b/t/chainlint/while-loop.expect
new file mode 100644
index 0000000000..2ba5582165
--- /dev/null
+++ b/t/chainlint/while-loop.expect
@@ -0,0 +1,14 @@
+2 (
+3 while true
+4 do
+5 echo foo ?!LINT: missing '&&'?!
+6 cat <<-\EOF ?!LINT: missing '|| exit 1'?!
+7 bar
+8 EOF
+9 done ?!LINT: missing '&&'?!
+10
+11 while true; do
+12 echo foo &&
+13 cat bar ?!LINT: missing '|| exit 1'?!
+14 done
+15 )