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 m...@milianw.de http://milianw.de
signature.asc
Description: This is a digitally signed message part.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<