Browse files

A second fix to empty sections and adding timing benchmark

  • Loading branch information...
1 parent a1146b7 commit a0186aee4d2207977f1a935022ad9c5727bf9556 zoe slattery committed May 17, 2012
View
BIN QA/QATimedBucket.tgz
Binary file not shown.
View
7 src/testcase/preconditions/rtHasNoEmptySections.php
@@ -49,12 +49,17 @@ public function isMet(array $testContents, array $sectionHeaders)
}
}
- //Catch an empty section at the end
+ //Catch an empty section, section header then blank line
if($this->isSectionHeading($thisLine)) {
if($nextLine == ""){
return false;
}
}
+
+ //catch an empty section, last line is a section header
+ if($this->isSectionHeading($nextLine)) {
+ return false;
+ }
return true;
}
View
1 src/testrun/rtPhpTestRun.php
@@ -47,7 +47,6 @@ public function run()
// $preConditionList->check($this->commandLine, $this->environmentVariables);
$preConditionList->check($runConfiguration);
- exit();
//Write PHP executable name to the array of env variables. Some
//test cases expect to be able to use it.

0 comments on commit a0186ae

Please sign in to comment.