Workaround for (presumably) race in TestReport
On SWING CI, sometimes when test times out, the whole
test run crashes on DNU as `outcome` instvar is nil.
This is maybe because of some race.
As a quick and dirty workaround, create a new one if
outcome is nil. Proper solution is to revise the code
and figure out what's wrong, indeed. This is left as
future work.
--- a/reports/Builder__TestReport.st Mon Dec 05 06:48:09 2016 +0100
+++ b/reports/Builder__TestReport.st Mon Feb 13 12:00:51 2017 +0100
@@ -516,6 +516,7 @@
etime := OperatingSystem getMillisecondTime.
timeouted ifTrue:[
error := TimeoutError new messageText: ('Timed out (effective %1ms, base %2ms, scale %3)' bindWith: timeout with: timeoutBase with:TimeoutScale) .
+ outcome isNil ifTrue:[ outcome := self createOutcome ].
outcome result: TestResult stateError.
format
writeTestCase: aTestCase outcome: outcome