forked from qt-creator/qt-creator
Tests: Fix expected assert on Windows
Paths are os specific in this context. Change-Id: Ida8f7a661ca005d0b624f4ce75727df420f51e9b Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -206,7 +206,7 @@ void tst_Ssh::pristineConnectionObject()
|
|||||||
QSsh::SshConnection connection((SshConnectionParameters()));
|
QSsh::SshConnection connection((SshConnectionParameters()));
|
||||||
QCOMPARE(connection.state(), SshConnection::Unconnected);
|
QCOMPARE(connection.state(), SshConnection::Unconnected);
|
||||||
QRegularExpression assertToIgnore(
|
QRegularExpression assertToIgnore(
|
||||||
"SOFT ASSERT: \"state\\(\\) == Connected\" in file .*/sshconnection.cpp, line \\d*");
|
"SOFT ASSERT: \"state\\(\\) == Connected\" in file .*[/\\\\]sshconnection.cpp, line \\d*");
|
||||||
QTest::ignoreMessage(QtDebugMsg, assertToIgnore);
|
QTest::ignoreMessage(QtDebugMsg, assertToIgnore);
|
||||||
QVERIFY(!connection.createRemoteProcess(""));
|
QVERIFY(!connection.createRemoteProcess(""));
|
||||||
QTest::ignoreMessage(QtDebugMsg, assertToIgnore);
|
QTest::ignoreMessage(QtDebugMsg, assertToIgnore);
|
||||||
|
Reference in New Issue
Block a user