Extending QScopedPointer test case
commit7bfdec392df263b15fb5661ab7d4f66f1cd8fbae
authorJoão Abecasis <joao@abecasis.name>
Fri, 6 Nov 2009 16:35:10 +0000 (6 17:35 +0100)
committerMarius Storm-Olsen <marius.storm-olsen@nokia.com>
Tue, 10 Nov 2009 09:13:37 +0000 (10 10:13 +0100)
treedb265d81ce2f1341575e0ebfc6be969d1fbf38d1
parentd5db58127b16f3c2508975661ee7328f569b9518
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