[squeak-dev] SUnit infinite loop detection
nicolas cellier
ncellier at ifrance.com
Sun Jul 6 00:49:01 UTC 2008
I wanted to assert some infiniteLoop, but found no other support than:
should:notTakeMoreThanMilliseconds:
I do not really like it, because it may vary
- a fast machine could exhaust memory and crash before duration
- a slow machine could fail
I put a proposal for recursive loops at
http://bugs.squeak.org/view.php?id=7111
In case of Error during block execution, my implementation makes the
test pass. I think it's wrong, but do not know how to handle...
And i am still interested by a way to assert infinite iterative loop
(the whileTrue/whileFalse case). Anyone has an idea about it?
Nicolas
More information about the Squeak-dev
mailing list
|