diff options
author | Denys Vlasenko | 2014-07-01 14:16:28 +0200 |
---|---|---|
committer | Denys Vlasenko | 2014-07-01 14:16:28 +0200 |
commit | 98654b995bb460733d94eba9ff2ee3d746c1e344 (patch) | |
tree | b20090196560f2c762ae9813b513ddf7fe64e899 /testsuite | |
parent | d32fc647d7da1923a91750ae937bf9b517195c8f (diff) | |
download | busybox-98654b995bb460733d94eba9ff2ee3d746c1e344.zip busybox-98654b995bb460733d94eba9ff2ee3d746c1e344.tar.gz |
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 2c92e34..1c2edaf 100755 --- a/testsuite/test.tests +++ b/testsuite/test.tests @@ -76,4 +76,24 @@ testing "test ! a = b -a ! c = d: should be true (0)" \ "0\n" \ "" "" +testing "test '!' = '!': should be true (0)" \ + "busybox test '!' = '!'; echo \$?" \ + "0\n" \ + "" "" + +testing "test '(' = '(': should be true (0)" \ + "busybox test '(' = '('; echo \$?" \ + "0\n" \ + "" "" + +testing "test '!' '!' = '!': should be false (1)" \ + "busybox test '!' '!' = '!'; echo \$?" \ + "1\n" \ + "" "" + +testing "test '!' '(' = '(': should be false (1)" \ + "busybox test '!' '(' = '('; echo \$?" \ + "1\n" \ + "" "" + exit $FAILCOUNT |