diff options
author | Gilles Espinasse <g.esp@free.fr> | 2012-06-27 23:21:50 +0200 |
---|---|---|
committer | Craig Small <csmall@enc.com.au> | 2012-06-28 21:53:22 +1000 |
commit | 664eaaebc646a8d0d6a64e790572c2ee91a5f977 (patch) | |
tree | 9e0584aaecf0408905c20d0d6ed2ba0c0027b17d /testsuite/pkill.test | |
parent | ecc265492fbf6693de5ed7329b9640edb8b6e795 (diff) | |
download | procps-ng-664eaaebc646a8d0d6a64e790572c2ee91a5f977.tar.gz |
Run pgrep and pkill tests whithout host ps
When ps is not available (like it may happen in a chroot), pgrep.exp and pkill.exp tests fail.
Use just build ps instead.
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
Diffstat (limited to 'testsuite/pkill.test')
-rw-r--r-- | testsuite/pkill.test/pkill.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/pkill.test/pkill.exp b/testsuite/pkill.test/pkill.exp index b9f5ddd..9e0b7e2 100644 --- a/testsuite/pkill.test/pkill.exp +++ b/testsuite/pkill.test/pkill.exp @@ -8,13 +8,14 @@ set uid [ exec id -u ] set not_uid [ expr { $uid + 1 } ] set gid [ exec id -g ] set not_gid [ expr { $gid + 1 } ] +set ps "${topdir}ps/pscommand" set raw_tty [ exec tty ] regexp "/dev/(.+)" $raw_tty > tty make_testproc set testproc_len [ string length $testproc_comm ] set testproc_trim [ string range $testproc_comm 0 [ expr { $testproc_len - 2 } ] ] -set testproc1_sid [ exec ps --no-headers -o sid $testproc1_pid ] +set testproc1_sid [ exec $ps --no-headers -o sid $testproc1_pid ] set test "pkill with no arguments" spawn $pkill |