From 7f6230cfff222fe938d333ee19b94e339257b1ba Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Wed, 6 Apr 2011 12:57:55 +1000 Subject: Remove test for compiler correctness Unit tests are supposed to verify Qt, verifying the compiler is a different task entirely. Reviewed-by: Rohan McGovern --- tests/auto/qpointer/tst_qpointer.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tests/auto/qpointer/tst_qpointer.cpp b/tests/auto/qpointer/tst_qpointer.cpp index 0fb4610..67579fd 100644 --- a/tests/auto/qpointer/tst_qpointer.cpp +++ b/tests/auto/qpointer/tst_qpointer.cpp @@ -60,7 +60,6 @@ private slots: void dereference_operators(); void disconnect(); void castDuringDestruction(); - void dataSignature() const; void threadSafety(); }; @@ -309,22 +308,6 @@ void tst_QPointer::castDuringDestruction() } } -void tst_QPointer::dataSignature() const -{ - /* data() should be const. */ - { - const QPointer p; - p.data(); - } - - /* The return type should be T. */ - { - const QPointer p; - /* If the types differs, the QCOMPARE will fail to instansiate. */ - QCOMPARE(p.data(), static_cast(0)); - } -} - class TestRunnable : public QObject, public QRunnable { void run() { QPointer obj1 = new QObject; -- cgit v0.12