aboutsummaryrefslogtreecommitdiffstats
path: root/testing-drivers/src/org/aspectj
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-08-17 18:47:54 +0000
committerwisberg <wisberg>2003-08-17 18:47:54 +0000
commit05e08aa4b026a672567e7e755bd46a18052159aa (patch)
tree542f3ea387b52165e07c56b62701db2a7eb3d12d /testing-drivers/src/org/aspectj
parenteb59ac3811ec7df39687216f24f855bf7ff400c5 (diff)
downloadaspectj-05e08aa4b026a672567e7e755bd46a18052159aa.tar.gz
aspectj-05e08aa4b026a672567e7e755bd46a18052159aa.zip
balancing start/end suite calls
Diffstat (limited to 'testing-drivers/src/org/aspectj')
-rw-r--r--testing-drivers/src/org/aspectj/testing/drivers/Harness.java20
1 files changed, 12 insertions, 8 deletions
diff --git a/testing-drivers/src/org/aspectj/testing/drivers/Harness.java b/testing-drivers/src/org/aspectj/testing/drivers/Harness.java
index d1651043b..94921da32 100644
--- a/testing-drivers/src/org/aspectj/testing/drivers/Harness.java
+++ b/testing-drivers/src/org/aspectj/testing/drivers/Harness.java
@@ -266,7 +266,6 @@ public class Harness {
if ((verboseHarness || skip || (0 < skipList.size()))) {
final List curArgs = Arrays.asList(globalOptionVariants[i]);
logln("runMain(" + suiteFile + ", " + curArgs + ")");
- doStartSuite(suiteFile);
if (verboseHarness) {
String format = "yyyy.MM.dd G 'at' hh:mm:ss a zzz";
SimpleDateFormat formatter = new SimpleDateFormat (format);
@@ -282,14 +281,19 @@ public class Harness {
}
}
if (!skip) {
- final long startTime = System.currentTimeMillis();
- RunResult result = run(spec);
- if (null != resultList) {
- resultList.add(result);
+ doStartSuite(suiteFile);
+ long elapsed = 0;
+ try {
+ final long startTime = System.currentTimeMillis();
+ RunResult result = run(spec);
+ if (null != resultList) {
+ resultList.add(result);
+ }
+ elapsed = System.currentTimeMillis() - startTime;
+ report(result.status, skipList.size(), result.numIncomplete, elapsed);
+ } finally {
+ doEndSuite(suiteFile,elapsed);
}
- final long elapsed = System.currentTimeMillis() - startTime;
- doEndSuite(suiteFile,elapsed);
- report(result.status, skipList.size(), result.numIncomplete, elapsed);
}
}
}