aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-parsing
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-12 14:21:30 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-12 14:21:30 +0200
commit09516066d4fb12d1be1c895c072bf481da97520a (patch)
tree52add03e5f16cc7a6b4f0d5d4ce4bb2e0ae97ecb /shell/hush_test/hush-parsing
parent79b021d738186ad0c581714626c7d2eea1bb6445 (diff)
downloadbusybox-09516066d4fb12d1be1c895c072bf481da97520a.tar.gz
hush: do not use ps -o in leak_argv1; do not hardcode path in negate
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-parsing')
-rw-r--r--shell/hush_test/hush-parsing/negate.right1
-rwxr-xr-xshell/hush_test/hush-parsing/negate.tests5
2 files changed, 5 insertions, 1 deletions
diff --git a/shell/hush_test/hush-parsing/negate.right b/shell/hush_test/hush-parsing/negate.right
index 01166012e..61d2ecd3a 100644
--- a/shell/hush_test/hush-parsing/negate.right
+++ b/shell/hush_test/hush-parsing/negate.right
@@ -33,3 +33,4 @@ c 1
1
1
1
+Done
diff --git a/shell/hush_test/hush-parsing/negate.tests b/shell/hush_test/hush-parsing/negate.tests
index c25127d7f..51151cbd4 100755
--- a/shell/hush_test/hush-parsing/negate.tests
+++ b/shell/hush_test/hush-parsing/negate.tests
@@ -7,10 +7,13 @@ if ! false; then false; echo $?; fi
echo $?
if ! false; then ! false; echo $?; fi
echo $?
+PRINTF=`which printf`
for a in ! a b c; do echo $a; done
for a in ! a b c; do ! printf "$a "; echo $?; done
-for a in ! a b c; do ! /usr/bin/printf "$a "; echo $?; done
+test x"$PRINTF" = x"" && exit 1
+for a in ! a b c; do ! "$PRINTF" "$a "; echo $?; done
for a in ! a b c; do ! printf "$a " | false; echo $?; done
for a in ! a b c; do ! printf "$a " | true; echo $?; done
for a in ! a b c; do ! { printf "$a " | false; }; echo $?; done
for a in ! a b c; do ! { printf "$a " | true; }; echo $?; done
+echo Done