From 777da5e391a81ed561767708c2f86a6b7b36af09 Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Sat, 27 Apr 2019 11:11:48 +0200 Subject: [PATCH] Fix CI on windows --- tests/src/core/AutomatableModelTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/core/AutomatableModelTest.cpp b/tests/src/core/AutomatableModelTest.cpp index 6717da12d..116f95e60 100644 --- a/tests/src/core/AutomatableModelTest.cpp +++ b/tests/src/core/AutomatableModelTest.cpp @@ -38,17 +38,17 @@ private slots: { ComboBoxModel comboModel; AutomatableModel* amPtr = &comboModel; - QCOMPARE(nullptr, amPtr->dynamicCast()); // not a parent class + QVERIFY(nullptr == amPtr->dynamicCast()); // not a parent class QCOMPARE(&comboModel, amPtr->dynamicCast()); // parent class QCOMPARE(&comboModel, amPtr->dynamicCast()); // parent class QCOMPARE(&comboModel, amPtr->dynamicCast()); // same class IntModel intModel; IntModel* imPtr = &intModel; - QCOMPARE(nullptr, imPtr->dynamicCast()); // not a parent class + QVERIFY(nullptr == imPtr->dynamicCast()); // not a parent class QCOMPARE(&intModel, imPtr->dynamicCast()); // parent class QCOMPARE(&intModel, imPtr->dynamicCast()); // same class - QCOMPARE(nullptr, imPtr->dynamicCast()); // child class + QVERIFY(nullptr == imPtr->dynamicCast()); // child class } } AutomatableModelTests;