From 349d63cfd7ddaf02c9bc146497937ad92ecfb89e Mon Sep 17 00:00:00 2001 From: James O'Gorman Date: Thu, 28 Apr 2011 20:55:26 +0000 Subject: 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. --- runtest.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtest.pl.in') 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"; -- cgit v1.2.3