#1078: Parrot goes into infinite loop when attempting to test exceptions with
throws_like()
----------------------+-----------------------------------------------------
 Reporter:  dukeleto  |       Owner:       
     Type:  bug       |      Status:  new  
 Priority:  normal    |   Milestone:       
Component:  testing   |     Version:  1.6.0
 Severity:  high      |    Keywords:       
     Lang:            |       Patch:       
 Platform:  all       |  
----------------------+-----------------------------------------------------

Comment(by NotFound):

 The problem, in this and other cases, is that an exception handler is, by
 design, allowed to catch the exceptions thrown by himself.

 The attached patch tries a possible approach: set a limit for the number
 of times the exception handler can be invoked, except for exceptions of
 CONTROL_... types. When that limit is reached, can_handle return false,
 allowing the next handler in the chain to take control.

 The value for the limit has been chosen arbitrarily and must be fine tuned
 later, if the proposal is accepted.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1078#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to