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
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
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