summaryrefslogtreecommitdiff
path: root/runtest.pl.in
diff options
context:
space:
mode:
authorJames O'Gorman <james@netinertia.co.uk>2011-04-28 20:55:26 +0000
committerJames O'Gorman <james@netinertia.co.uk>2011-04-28 20:55:26 +0000
commit349d63cfd7ddaf02c9bc146497937ad92ecfb89e (patch)
tree7d160e4a189434d10593f17644b8d5fdd8e0ec9d /runtest.pl.in
parentdfc6c37078bf8611bfbc95fcaa83386d8839bfc2 (diff)
Minor fix to runtest.pl to allow it to fail if an invalid test name is given - otherwise it fails to chdir() and runs make in the wrong directory.
Diffstat (limited to 'runtest.pl.in')
-rwxr-xr-xruntest.pl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtest.pl.in b/runtest.pl.in
index 42407378..b4f59c1f 100755
--- a/runtest.pl.in
+++ b/runtest.pl.in
@@ -99,7 +99,7 @@ sub runtest
# attempt to make this test
my $flag = ($test_mode eq 'release')?(BoxPlatform::make_flag('RELEASE')):'';
- my $make_res = system("cd test/$t ; $make_command $flag");
+ my $make_res = system("cd test/$t && $make_command $flag");
if($make_res != 0)
{
push @results,"$t: make failed";