diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-08-20 10:43:27 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-08-20 10:43:27 (GMT) |
commit | 9127fd802cb9127939dc41d125a5ac59d4876a71 (patch) | |
tree | 8a080a75d8049dbe4b9de623729238ef2185301c /tests/auto/qsharedpointer/tst_qsharedpointer.cpp | |
parent | 5fa19cbf945f43146f2b0e0f93da53fec27fd543 (diff) | |
download | Qt-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/tst_qsharedpointer.cpp')
-rw-r--r-- | tests/auto/qsharedpointer/tst_qsharedpointer.cpp | 1 |
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); } |