> Ok, then it looks like:
>
> runCase
>        "STEFAN: Added simple hack to 'detect' deadlocks"
>        Author
>                ifUnknownAuthorUse: 'TestRunner'
>                during: [
>                        [ [self setUp.
>                           self performTest.]
>                                        valueWithin: self expectedMaxRuntime
>                                        onTimeout: [ self failWithTimeout. ]]
>                                ensure: [
>                                        self tearDown.
>                                        self cleanUpInstanceVariables ] ]
>
> And works fine, too.

Please don't add this to TestCase. Sometimes I want to keep my
debuggers open. Also this slows running lots of tests considerably
down.

I suggest that you create your own subclass of TestCase and override
runCase as such:

runCase
    [ super runCase ]
          valueWithin: self expectedMaxRuntime
          onTimeout: [ self failWithTimeout ]

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to