summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2007-05-24 12:26:39 +0000
committerDenis Vlasenko2007-05-24 12:26:39 +0000
commit2b6bbad4dbc7d14bc0fca8eec41e6bfa35453537 (patch)
treef309ba8e015d07d9dee980ed7dfb7df870957d15
parent0fe67b16ce7ba3d5aa0f405bf3c2541210bb5320 (diff)
downloadbusybox-2b6bbad4dbc7d14bc0fca8eec41e6bfa35453537.zip
busybox-2b6bbad4dbc7d14bc0fca8eec41e6bfa35453537.tar.gz
hush: add 2 tests for correct syntax error reporting
-rw-r--r--shell/hush_test/hush-misc/syntax_err.right1
-rwxr-xr-xshell/hush_test/hush-misc/syntax_err.tests1
2 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/syntax_err.right b/shell/hush_test/hush-misc/syntax_err.right
new file mode 100644
index 0000000..fbf3c9f
--- /dev/null
+++ b/shell/hush_test/hush-misc/syntax_err.right
@@ -0,0 +1 @@
+hush: syntax error: unterminated '
diff --git a/shell/hush_test/hush-misc/syntax_err.tests b/shell/hush_test/hush-misc/syntax_err.tests
new file mode 100755
index 0000000..c990c64
--- /dev/null
+++ b/shell/hush_test/hush-misc/syntax_err.tests
@@ -0,0 +1 @@
+echo test `echo 'aa`