summaryrefslogtreecommitdiff
path: root/unit-tests/opt-debug-errors.exp
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/opt-debug-errors.exp')
-rw-r--r--unit-tests/opt-debug-errors.exp34
1 files changed, 34 insertions, 0 deletions
diff --git a/unit-tests/opt-debug-errors.exp b/unit-tests/opt-debug-errors.exp
new file mode 100644
index 0000000000000..dd13e66526b00
--- /dev/null
+++ b/unit-tests/opt-debug-errors.exp
@@ -0,0 +1,34 @@
+echo '3 spaces'; false
+3 spaces
+
+*** Failed target: fail-spaces
+*** Failed command: echo '3 spaces'; false
+*** Error code 1 (continuing)
+echo \ indented; false
+ indented
+
+*** Failed target: fail-escaped-space
+*** Failed command: echo \ indented; false
+*** Error code 1 (continuing)
+echo 'line1
+line2'; false
+line1
+line2
+
+*** Failed target: fail-newline
+*** Failed command: echo 'line1 line2'; false
+*** Error code 1 (continuing)
+echo 'line1 line2'; false
+line1 line2
+
+*** Failed target: fail-multiline
+*** Failed command: echo 'line1 line2'; false
+*** Error code 1 (continuing)
+echo 'word1' 'word2'; false
+word1 word2
+
+*** Failed target: fail-multiline-intention
+*** Failed command: echo 'word1' 'word2'; false
+*** Error code 1 (continuing)
+`all' not remade because of errors.
+exit status 0