From a09c5baedbf305fb64bbb4c3883ecb826d42296a Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 9 Mar 2022 10:08:12 +0100 Subject: [PATCH] Tests: Fix expected assert on Windows Paths are os specific in this context. Change-Id: Ida8f7a661ca005d0b624f4ce75727df420f51e9b Reviewed-by: Jarek Kobus --- tests/auto/ssh/tst_ssh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/ssh/tst_ssh.cpp b/tests/auto/ssh/tst_ssh.cpp index 2c237bfbfa9..b4cf76a6911 100644 --- a/tests/auto/ssh/tst_ssh.cpp +++ b/tests/auto/ssh/tst_ssh.cpp @@ -206,7 +206,7 @@ void tst_Ssh::pristineConnectionObject() QSsh::SshConnection connection((SshConnectionParameters())); QCOMPARE(connection.state(), SshConnection::Unconnected); 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); QVERIFY(!connection.createRemoteProcess("")); QTest::ignoreMessage(QtDebugMsg, assertToIgnore);