[Development] QtTest for everybody

Thiago Macieira thiago.macieira at intel.com
Tue Oct 8 17:07:13 CEST 2013


On terça-feira, 8 de outubro de 2013 09:56:59, André Somers wrote:
> > QtTest can test code with exceptions.
> > 
> > Just make sure that your exceptions don't escape the test slots. That's a
> > reasonable requirement.
> 
> Would it be reasonable/possible to record a FAIL on an exception instead?

Yes. And terminate the application afterwards.

That's what QtTest tries to do if your application crashes. In fact, since we 
have a crash handler, that will crash SIGABRT, which is what std::terminate() 
does. So we might not need anything.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131008/d6a13e54/attachment.sig>


More information about the Development mailing list