summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorGilles Espinasse <g.esp@free.fr>2013-05-23 23:22:49 +0200
committerCraig Small <csmall@enc.com.au>2013-05-26 07:30:16 +1000
commitab7009888e83c04c8f9fe63b0ae9552831b59550 (patch)
treeacc1b0495831ea656533c63c07bcd0aa921dd274 /testsuite
parent53b253b75acda47b63b745d0d271160afc3bf9c0 (diff)
downloadprocps-ng-ab7009888e83c04c8f9fe63b0ae9552831b59550.tar.gz
procps-ng : tests, remove which dependency
which is a separate package that may not be available and is not yet build on Linux from scratch build order. Instead use posix command -v. command -v is a builtin working with bash-4.2, 3.0.25 or even old bash-2.05 or current debian dash Signed-off-by: Gilles Espinasse <g.esp@free.fr>
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/config/unix.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/config/unix.exp b/testsuite/config/unix.exp
index 2a72c07..700c38e 100644
--- a/testsuite/config/unix.exp
+++ b/testsuite/config/unix.exp
@@ -117,7 +117,7 @@ proc make_testproc { } {
set sleep_time 300
set testproc_path [ exec mktemp -u ]
- set sleep_path [ exec which sleep ]
+ set sleep_path [ exec sh -c "command -v sleep" ]
exec ln -s $sleep_path $testproc_path
set testproc_comm [ exec basename $testproc_path ]