summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-parsing
diff options
context:
space:
mode:
authorDenis Vlasenko2007-05-23 00:32:25 +0000
committerDenis Vlasenko2007-05-23 00:32:25 +0000
commit1a7358612ff2dfdfc9fa461faa946c577666787f (patch)
tree3edf610e1f0bab6f33e90716fc1550f0c9060991 /shell/hush_test/hush-parsing
parent94dace30160131fc3f45b3f486463c49cda05204 (diff)
downloadbusybox-1a7358612ff2dfdfc9fa461faa946c577666787f.zip
busybox-1a7358612ff2dfdfc9fa461faa946c577666787f.tar.gz
hush: fix a bit different instance of "No EOL" bug,
add testsuite for that. Expand another testsuite.
Diffstat (limited to 'shell/hush_test/hush-parsing')
-rw-r--r--shell/hush_test/hush-parsing/noeol2.right1
-rwxr-xr-xshell/hush_test/hush-parsing/noeol2.tests7
2 files changed, 8 insertions, 0 deletions
diff --git a/shell/hush_test/hush-parsing/noeol2.right b/shell/hush_test/hush-parsing/noeol2.right
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/shell/hush_test/hush-parsing/noeol2.right
@@ -0,0 +1 @@
+1
diff --git a/shell/hush_test/hush-parsing/noeol2.tests b/shell/hush_test/hush-parsing/noeol2.tests
new file mode 100755
index 0000000..1220f05
--- /dev/null
+++ b/shell/hush_test/hush-parsing/noeol2.tests
@@ -0,0 +1,7 @@
+# last line has no EOL!
+if true
+then
+ echo 1
+else
+ echo 2
+fi \ No newline at end of file