aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-01-16 22:08:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-01-16 22:08:37 +0000
commit301ae1ae1bde66e51eef9d55d9835196341af792 (patch)
tree6a67059cbec3c01c003155d7fb5e621bcc39cf6b /tests/runtests.pl
parentddaa78f08b394f1c7cd1488ce24aee1412679c29 (diff)
Nathan Coulter's patch that makes runtests.pl respect the PATH when figuring
out what valgrind to run.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 86687eeb1..e4f2e9d58 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -373,8 +373,8 @@ sub startnew {
#
sub checkcmd {
my ($cmd)=@_;
- my @paths=("/usr/sbin", "/usr/local/sbin", "/sbin", "/usr/bin",
- "/usr/local/bin", split(":", $ENV{'PATH'}));
+ my @paths=(split(":", $ENV{'PATH'}), "/usr/sbin", "/usr/local/sbin",
+ "/sbin", "/usr/bin", "/usr/local/bin", );
for(@paths) {
if( -x "$_/$cmd") {
return "$_/$cmd";