summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp b/tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp
index 0cb6b59c02..967a3ccf55 100644
--- a/tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp
+++ b/tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp
@@ -385,7 +385,10 @@ void tst_QScopedPointer::comparison()
scopedPointerComparisonTest(pa2, pa2, pb);
scopedPointerComparisonTest(pa1, pa2, pb);
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_DEPRECATED
pa2.take();
+QT_WARNING_POP
QCOMPARE( RefCounted::instanceCount.loadRelaxed(), 2 );
}
@@ -404,7 +407,10 @@ void tst_QScopedPointer::comparison()
scopedPointerComparisonTest(pa1, pa2, pb);
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_DEPRECATED
pa2.take();
+QT_WARNING_POP
QCOMPARE( RefCounted::instanceCount.loadRelaxed(), 85 );
}