diff --git a/Makefile b/Makefile index aad7dacf79d..d3f0c0b9d1f 100644 --- a/Makefile +++ b/Makefile @@ -126,7 +126,7 @@ endif test: .FORCE vw library_example @echo "vw running test-suite..." - (cd test && ./RunTests -d -fe -E 0.001 ../vowpalwabbit/vw ../vowpalwabbit/vw) + (cd test && ./RunTests -d -fe -E 0.001 ../vowpalwabbit/vw) test_gcov: .FORCE vw_gcov library_example_gcov @echo "vw running test-suite..." diff --git a/test/RunTests b/test/RunTests index df43a8ae68a..04d5a0d979c 100755 --- a/test/RunTests +++ b/test/RunTests @@ -137,7 +137,7 @@ sub valgrind_errfile($) { # which vw executable to test against # sub which_vw() { - if (@ARGV == 1 || @ARGV == 2) { + if (@ARGV > 0) { my $exe = $ARGV[0]; if (-f $exe && -x $exe) { printf STDERR "Testing vw: %s\n", $exe;