Sign in
zircon-guest
/
third_party
/
toybox
/
refs/tags/0.8.3
/
.
/
tests
/
ps.test
blob: e14336ffe8466e6c63f7da5ab48885955f4d2654 [
file
] [
log
] [
blame
]
#!/bin/bash
[
-
f testing
.
sh
]
&&
.
testing
.
sh
#testing "name" "command" "result" "infile" "stdin"
ln
-
s
"$(which sleep)"
xiphoid
(./
xiphoid
5
&
echo $
!
>
pid
.
txt
)
ID
=
$
(
cat pid
.
txt
)
NOSPACE
=
1
testing
""
"ps -o pid $ID"
"PID\n$ID\n"
""
""
kill
"$ID"