From d23f64eba79a702c36d8d8cec23b49c320897138 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 17 Jul 2009 00:59:26 +0200 Subject: test: fix "test !" and "test abc -a !". closes bug 465 function old new delta nexpr 826 840 +14 Signed-off-by: Denys Vlasenko --- testsuite/test.tests | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testsuite') diff --git a/testsuite/test.tests b/testsuite/test.tests index d4be949..b7c84d9 100755 --- a/testsuite/test.tests +++ b/testsuite/test.tests @@ -21,6 +21,11 @@ testing "test '': should be false (1)" \ "1\n" \ "" "" +testing "test !: should be true (0)" \ + "busybox test !; echo \$?" \ + "0\n" \ + "" "" + testing "test a: should be true (0)" \ "busybox test a; echo \$?" \ "0\n" \ @@ -51,6 +56,11 @@ testing "test -lt = -gt: should be false (1)" \ "1\n" \ "" "" +testing "test a -a !: should be true (0)" \ + "busybox test a -a !; echo \$?" \ + "0\n" \ + "" "" + testing "test -f = a -o b: should be true (0)" \ "busybox test -f = a -o b; echo \$?" \ "0\n" \ -- cgit v1.1