diff options
author | wisberg <wisberg> | 2003-08-17 18:47:54 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-08-17 18:47:54 +0000 |
commit | 05e08aa4b026a672567e7e755bd46a18052159aa (patch) | |
tree | 542f3ea387b52165e07c56b62701db2a7eb3d12d /testing-drivers/src/org/aspectj | |
parent | eb59ac3811ec7df39687216f24f855bf7ff400c5 (diff) | |
download | aspectj-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.java | 20 |
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); } } } |