File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
testing/Project/Sources/Classes Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,21 @@ Function _runParallel()
3939 // Set up global error handler for the test run
4040 var $previousErrorHandler : Text
4141 $previousErrorHandler := Method called on error:C704
42- ON ERR CALL:C155 ("TestErrorHandler" )
4342
4443 // Tests already discovered in run() method
4544 If (This:C1470 .testSuites .length = 0)
4645 This:C1470 ._generateReport ()
46+ // Restore previous error handler
47+ If ($previousErrorHandler# "")
48+ ON ERR CALL:C155 ($previousErrorHandler )
49+ Else
50+ ON ERR CALL:C155 ("" )
51+ End if
4752 return
4853 End if
49-
54+
55+ // Install handler only when we have work to do
56+ ON ERR CALL:C155 ("TestErrorHandler" )
5057 This:C1470 .results .startTime := Milliseconds:C459
5158
5259 If (This:C1470 .outputFormat = "human")
You can’t perform that action at this time.
0 commit comments