summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko2014-07-01 14:16:28 +0200
committerDenys Vlasenko2014-07-01 14:16:28 +0200
commit98654b995bb460733d94eba9ff2ee3d746c1e344 (patch)
treeb20090196560f2c762ae9813b513ddf7fe64e899 /testsuite
parentd32fc647d7da1923a91750ae937bf9b517195c8f (diff)
downloadbusybox-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-xtestsuite/test.tests20
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