summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-06-25 09:32:06 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-06-25 09:42:17 (GMT)
commit4b9784fcdd7321a5d82b8ae73edd1ae52786d7ad (patch)
tree1af93a46f3f32274b3ae570965c666a53080cdfe /tests
parent10977eb209e743cf0010fd43ecf66f96815fad2f (diff)
downloadQt-4b9784fcdd7321a5d82b8ae73edd1ae52786d7ad.zip
Qt-4b9784fcdd7321a5d82b8ae73edd1ae52786d7ad.tar.gz
Qt-4b9784fcdd7321a5d82b8ae73edd1ae52786d7ad.tar.bz2
Change QSharedPointer to track (or not) pointers when the #define is
enabled. This allows mixing of debug and non-debug code (possible on Unix systems) without causing assertion failures. Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qsharedpointer/tst_qsharedpointer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qsharedpointer/tst_qsharedpointer.cpp b/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
index 795ce76..a11164f 100644
--- a/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
+++ b/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-
+#define QT_SHAREDPOINTER_TRACK_POINTERS
#include "qsharedpointer.h"
#include "externaltests.h"
#include <QtTest/QtTest>
@@ -995,6 +995,7 @@ void tst_QSharedPointer::invalidConstructs()
test.setDebugMode(true);
test.setQtModules(QTest::QExternalTest::QtCore);
test.setProgramHeader(
+ "#define QT_SHAREDPOINTER_TRACK_POINTERS\n"
"#include <QtCore/qsharedpointer.h>\n"
"\n"
"struct Data { int i; };\n"