diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2014-07-01 14:16:28 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-07-01 14:16:28 +0200 |
commit | 98654b995bb460733d94eba9ff2ee3d746c1e344 (patch) | |
tree | b20090196560f2c762ae9813b513ddf7fe64e899 /testsuite | |
parent | d32fc647d7da1923a91750ae937bf9b517195c8f (diff) | |
download | busybox-w32-98654b995bb460733d94eba9ff2ee3d746c1e344.tar.gz busybox-w32-98654b995bb460733d94eba9ff2ee3d746c1e344.tar.bz2 busybox-w32-98654b995bb460733d94eba9ff2ee3d746c1e344.zip |
test: fix mishandling of "test '(' = '('" and similar
function old new delta
test_main 246 350 +104
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/test.tests | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/test.tests b/testsuite/test.tests index 2c92e34ba..1c2edaf62 100755 --- a/testsuite/test.tests +++ b/testsuite/test.tests | |||
@@ -76,4 +76,24 @@ testing "test ! a = b -a ! c = d: should be true (0)" \ | |||
76 | "0\n" \ | 76 | "0\n" \ |
77 | "" "" | 77 | "" "" |
78 | 78 | ||
79 | testing "test '!' = '!': should be true (0)" \ | ||
80 | "busybox test '!' = '!'; echo \$?" \ | ||
81 | "0\n" \ | ||
82 | "" "" | ||
83 | |||
84 | testing "test '(' = '(': should be true (0)" \ | ||
85 | "busybox test '(' = '('; echo \$?" \ | ||
86 | "0\n" \ | ||
87 | "" "" | ||
88 | |||
89 | testing "test '!' '!' = '!': should be false (1)" \ | ||
90 | "busybox test '!' '!' = '!'; echo \$?" \ | ||
91 | "1\n" \ | ||
92 | "" "" | ||
93 | |||
94 | testing "test '!' '(' = '(': should be false (1)" \ | ||
95 | "busybox test '!' '(' = '('; echo \$?" \ | ||
96 | "1\n" \ | ||
97 | "" "" | ||
98 | |||
79 | exit $FAILCOUNT | 99 | exit $FAILCOUNT |