Re: unit testing a freeze

2012-03-21 Thread Frank Reininghaus
Hi, Am 22. März 2012 01:11 schrieb Dario Freddi: > Il 21 marzo 2012 22:29, Dominik Haumann ha scritto: >> Moin, >> >> is there a simple way to unit test a freeze? >> Like if the test needs more than 5 seconds, fail? > > There's no straightforward way to check afaik and I don't really like > the th

Re: unit testing a freeze

2012-03-21 Thread Dario Freddi
Il 21 marzo 2012 22:29, Dominik Haumann ha scritto: > Moin, > > is there a simple way to unit test a freeze? > Like if the test needs more than 5 seconds, fail? There's no straightforward way to check afaik and I don't really like the thread approach. What are you trying to verify? If the context

unit testing a freeze

2012-03-21 Thread Dominik Haumann
Moin, is there a simple way to unit test a freeze? Like if the test needs more than 5 seconds, fail? One way would be to create a thread, start the freeze unit test, and if the thread does not finish in some time period, kill it and fail. But that's rather complicated for such a simple thing. M