refs #601, #600 Fixed test that was broken by previous commit "status message handling".

This commit is contained in:
Mathew Sutcliffe
2016-03-07 17:00:10 +00:00
parent 144ba62572
commit fa27b32984

View File

@@ -97,8 +97,8 @@ namespace BlackMiscTest
user1.m_value2.set(42);
user2.slotFired();
QTest::ignoreMessage(QtCriticalMsg, QRegularExpression("-1337 is not valid"));
user1.m_value2.set(-1337);
auto status = user1.m_value2.set(-1337);
QVERIFY(status.isFailure());
QVERIFY(! user1.slotFired());
QVERIFY(! user2.slotFired());
singleShotAndWait(&user2, [ & ] { QVERIFY(user2.m_value2.get() == 42); });