summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsharedpointer
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-08-20 10:43:27 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-08-20 10:43:27 (GMT)
commit9127fd802cb9127939dc41d125a5ac59d4876a71 (patch)
tree8a080a75d8049dbe4b9de623729238ef2185301c /tests/auto/qsharedpointer
parent5fa19cbf945f43146f2b0e0f93da53fec27fd543 (diff)
downloadQt-9127fd802cb9127939dc41d125a5ac59d4876a71.zip
Qt-9127fd802cb9127939dc41d125a5ac59d4876a71.tar.gz
Qt-9127fd802cb9127939dc41d125a5ac59d4876a71.tar.bz2
Autotest: add one more check for operator==
I'm running out of ideas as to why MSVC.NET 2003 cannot do this test: baseptr == aData If I do baseptr.data() == aData, it works. And the operator== that it should be calling does exactly that. So my only clue so far is that it's calling some other operator== -- which doesn't make sense, since there is no other.
Diffstat (limited to 'tests/auto/qsharedpointer')
-rw-r--r--tests/auto/qsharedpointer/tst_qsharedpointer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qsharedpointer/tst_qsharedpointer.cpp b/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
index c9b2325..dd34484 100644
--- a/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
+++ b/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
@@ -799,6 +799,7 @@ void tst_QSharedPointer::differentPointers()
QVERIFY(baseptr.data() == aData);
QVERIFY(aData == baseptr.data());
+ QVERIFY(bool(operator==<Data,DiffPtrDerivedData>(baseptr, aData)));
QVERIFY(baseptr == aData);
QVERIFY(aData == baseptr);
}