Extending QScopedPointer test case
commita5b8ede4938809f6a513a76edc3659db3c9658cf
authorJoão Abecasis <joao@abecasis.name>
Fri, 6 Nov 2009 16:35:10 +0000 (6 17:35 +0100)
committerDavid Boddie <dboddie@trolltech.com>
Wed, 11 Nov 2009 16:06:48 +0000 (11 17:06 +0100)
tree688fddead3326575a19eee066cfe3bfdee10e2d3
parent84e4fed4077c10158f4e76a483be34b3f6ca1b3a
Extending QScopedPointer test case

... to also test QScopedArrayPointer, QCustomScopedPointer and
QScopedSharedPointer.

Added one level of indirection to comparison test case to avoid
double-delete in case of test failure. The test also tests other aspects
of Q*Scoped*Pointer behavior.

Reviewed-by: Olivier Goffart
tests/auto/qscopedpointer/tst_qscopedpointer.cpp