K_GLOBAL_STATIC and unittests?

Thiago Macieira thiago at kde.org
Sat Oct 17 11:49:28 BST 2009

Em Sábado 17. Outubro 2009, às 09.49.54, Boudewijn Rempt escreveu:
> It seems that statics created with K_GLOBAL_STATIC aren't destroyed when
>  they are created in a unittest, though it works perfectly in a real
>  application. Is that something known or intentional?

Global statics are destroyed when the application exits. That's too late for 
the tests.

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14     San Francisco, California: Nov 2 - 4
-------------- 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://mail.kde.org/pipermail/kde-core-devel/attachments/20091017/a102ac3f/attachment.sig>

More information about the kde-core-devel mailing list