From: "Stephan Kämper" Date: 2004-01-09T05:36:40+09:00 Subject: Re: testunit and infinite loop Bil Kleb wrote: > Nathaniel Talbott wrote: >> Could you just use timeout? > > Perfect. Thanks. > > However, it still seems like a bit of a hack to have to pick > a large time, but maybe that's the only way out of this paradox? > Well, I don't think there's a paradox. But I do think the this is a (and may be even the) way out of this situation. The question is: Can you tell - by just running the code - whether it will potentially run forever? And the answer is, no you can't: No matter how long you wait, the code in question might just need just one second longer than you 're willinf to wait. (Or it may not...) BTW, the time out gives you some kind of performance measurement in addition to the plain functional test. Not that this would be a recommended way of performance testing... Happy rubying Stephan