diff options
-rw-r--r-- | tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp b/tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp index 5ad0b1c208..ff776b9752 100644 --- a/tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp +++ b/tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp @@ -817,10 +817,8 @@ void tst_QSharedPointer::differentPointers() // ensure that this compiler isn't broken if (*reinterpret_cast<quintptr *>(&aData) == *reinterpret_cast<quintptr *>(&aBase)) - qFatal("Something went very wrong -- we couldn't create two different pointers to the same object"); - if (aData != aBase) - QSKIP("Broken compiler", SkipAll); - if (aBase != aData) + QFAIL("Something went very wrong -- we couldn't create two different pointers to the same object"); + if (aData != aBase || aBase != aData) QSKIP("Broken compiler", SkipAll); QSharedPointer<DiffPtrDerivedData> ptr = QSharedPointer<DiffPtrDerivedData>(aData); |