Il 18/01/2017 18:16, Bob Hood ha scritto:
> Is QTest capable of testing deferred results--i.e., evaluating tests results 
> after the even loop has run again--or can only synchronous actions be tested? 
>  
> I know people have used qWait() and such in the past, or I supposed I could 
> manually invoke the event loop within the unit test until signals are 
> emitted, 
> but I was wondering if QTest has been designed to handle that in a canonical 
> fashion I'm not immediately seeing.

Just use QTRY_COMPARE instead of QCOMPARE.

HTH,

-- 
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - Qt, C++ and OpenGL Experts

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to