From 301ae1ae1bde66e51eef9d55d9835196341af792 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 16 Jan 2008 22:08:37 +0000 Subject: Nathan Coulter's patch that makes runtests.pl respect the PATH when figuring out what valgrind to run. --- tests/runtests.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/runtests.pl') 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"; -- cgit v1.2.3