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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user