Autotest: fix incorrect test message ignoring
Commit 748abf9347
changed the message, but
the CI either did not run the QtDBus tests when integrating or it
ignored the results.
Task-number: QTBUG-45317
Change-Id: Iee8cbc07c4434ce9b560ffff13d058f21b73ac05
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Reviewed-by: Alberto Mardegan <mardy@users.sourceforge.net>
This commit is contained in:
parent
046f325483
commit
418869d915
@ -874,7 +874,7 @@ void tst_QDBusMarshall::sendSignalErrors()
|
||||
"signalName");
|
||||
msg << QVariant::fromValue(QDBusObjectPath());
|
||||
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusConnection: error: could not send signal path \"/foo\" interface \"local.interfaceName\" member \"signalName\": Marshalling failed: Invalid object path passed in arguments");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusConnection: error: could not send signal to service \"\" path \"/foo\" interface \"local.interfaceName\" member \"signalName\": Marshalling failed: Invalid object path passed in arguments");
|
||||
QVERIFY(!con.send(msg));
|
||||
|
||||
msg.setArguments(QVariantList());
|
||||
@ -884,19 +884,19 @@ void tst_QDBusMarshall::sendSignalErrors()
|
||||
path.setPath("abc");
|
||||
msg << QVariant::fromValue(path);
|
||||
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusConnection: error: could not send signal path \"/foo\" interface \"local.interfaceName\" member \"signalName\": Marshalling failed: Invalid object path passed in arguments");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusConnection: error: could not send signal to service \"\" path \"/foo\" interface \"local.interfaceName\" member \"signalName\": Marshalling failed: Invalid object path passed in arguments");
|
||||
QVERIFY(!con.send(msg));
|
||||
|
||||
QDBusSignature sig;
|
||||
msg.setArguments(QVariantList() << QVariant::fromValue(sig));
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusConnection: error: could not send signal path \"/foo\" interface \"local.interfaceName\" member \"signalName\": Marshalling failed: Invalid signature passed in arguments");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusConnection: error: could not send signal to service \"\" path \"/foo\" interface \"local.interfaceName\" member \"signalName\": Marshalling failed: Invalid signature passed in arguments");
|
||||
QVERIFY(!con.send(msg));
|
||||
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusSignature: invalid signature \"a\"");
|
||||
sig.setSignature("a");
|
||||
msg.setArguments(QVariantList());
|
||||
msg << QVariant::fromValue(sig);
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusConnection: error: could not send signal path \"/foo\" interface \"local.interfaceName\" member \"signalName\": Marshalling failed: Invalid signature passed in arguments");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusConnection: error: could not send signal to service \"\" path \"/foo\" interface \"local.interfaceName\" member \"signalName\": Marshalling failed: Invalid signature passed in arguments");
|
||||
QVERIFY(!con.send(msg));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user