[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: unit testing a freeze
From: Milian Wolff <mail () milianw ! de>
Date: 2012-03-22 9:47:18
Message-ID: 9451890.rteaADR9R4 () milian-kdab2
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Wednesday 21 March 2012 22:29:53 Dominik Haumann wrote:
> 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. Maybe QTest already provides
> some nice feature?
Why not Zoidberg? Uhm I mean: ctest --timeout <seconds>
Cheers
--
Milian Wolff
mail@milianw.de
http://milianw.de
["signature.asc" (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic