diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-10 23:06:55 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-10 23:06:55 +0000 |
commit | e0a336747c2061d0d555c4e15287b513831d2947 (patch) | |
tree | d51595efe1d14bc4f236d70a5ce7fac0a47e99cc /shell/hush_test/hush-vars | |
parent | 53079d494ef0c1fec481b062b3614c45e60eb057 (diff) | |
download | busybox-w32-e0a336747c2061d0d555c4e15287b513831d2947.tar.gz busybox-w32-e0a336747c2061d0d555c4e15287b513831d2947.tar.bz2 busybox-w32-e0a336747c2061d0d555c4e15287b513831d2947.zip |
hush: fix "unterminated last line loops forever" bug
hush: add testsuite infrastructure
Diffstat (limited to 'shell/hush_test/hush-vars')
-rw-r--r-- | shell/hush_test/hush-vars/var.right | 4 | ||||
-rw-r--r-- | shell/hush_test/hush-vars/var.tests | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/var.right b/shell/hush_test/hush-vars/var.right new file mode 100644 index 000000000..c13b98e38 --- /dev/null +++ b/shell/hush_test/hush-vars/var.right | |||
@@ -0,0 +1,4 @@ | |||
1 | http://busybox.net | ||
2 | http://busybox.net_abc | ||
3 | 1 | ||
4 | 0 | ||
diff --git a/shell/hush_test/hush-vars/var.tests b/shell/hush_test/hush-vars/var.tests new file mode 100644 index 000000000..b0637ea6b --- /dev/null +++ b/shell/hush_test/hush-vars/var.tests | |||
@@ -0,0 +1,10 @@ | |||
1 | URL=http://busybox.net | ||
2 | |||
3 | echo $URL | ||
4 | echo ${URL}_abc | ||
5 | |||
6 | true | ||
7 | false; echo $? | ||
8 | true | ||
9 | # BUG: prints 0, must be 1 | ||
10 | { false; echo $?; } | ||