diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-04-06 02:57:55 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2011-04-06 02:57:55 (GMT) |
commit | 7f6230cfff222fe938d333ee19b94e339257b1ba (patch) | |
tree | 027b8c7e9ffe7ea26c8d5392cc30d538a66dd46c /tests | |
parent | d894a4720d652f11cdc791b5f556bd8b29845667 (diff) | |
download | Qt-7f6230cfff222fe938d333ee19b94e339257b1ba.zip Qt-7f6230cfff222fe938d333ee19b94e339257b1ba.tar.gz Qt-7f6230cfff222fe938d333ee19b94e339257b1ba.tar.bz2 |
Remove test for compiler correctness
Unit tests are supposed to verify Qt, verifying the compiler is a
different task entirely.
Reviewed-by: Rohan McGovern
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qpointer/tst_qpointer.cpp | 17 |
1 files changed, 0 insertions, 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<QObject> p; - p.data(); - } - - /* The return type should be T. */ - { - const QPointer<QWidget> p; - /* If the types differs, the QCOMPARE will fail to instansiate. */ - QCOMPARE(p.data(), static_cast<QWidget *>(0)); - } -} - class TestRunnable : public QObject, public QRunnable { void run() { QPointer<QObject> obj1 = new QObject; |