OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92ca5af
)
Make pgrep tests runnable on toybox-only systems.
author
Elliott Hughes
<enh@google.com>
Sun, 2 Apr 2017 19:29:39 +0000
(12:29 -0700)
committer
Rob Landley
<rob@landley.net>
Fri, 7 Apr 2017 16:41:20 +0000
(11:41 -0500)
Also make the cleanup kill more focused.
tests/pgrep.test
patch
|
blob
|
history
diff --git
a/tests/pgrep.test
b/tests/pgrep.test
index
3319c79
..
8db848f
100755
(executable)
--- a/
tests/pgrep.test
+++ b/
tests/pgrep.test
@@
-16,7
+16,7
@@
proc=$!
#echo "# Process created with id: $proc"
sleep .1
session_id=0
-proc_parent=`cat /proc/${proc}/stat |
awk '{ print $4 }'
`
+proc_parent=`cat /proc/${proc}/stat |
cut -d' ' -f4
`
#echo "# Parent Process id of $proc is $proc_parent"
# Testcases for pgrep command
@@
-34,4
+34,4
@@
testing "return failure" "pgrep almost-certainly-not || echo failure" \
"failure\n" "" ""
#Clean-up
-kill
all yes >/dev/null 2>&1
+kill
-9 $proc