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(&aData) == *reinterpret_cast(&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 ptr = QSharedPointer(aData);