diff options
Diffstat (limited to 'tests/auto/network/socket/qlocalsocket')
-rw-r--r-- | tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp b/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp index 72fa9f74a4..70da67455e 100644 --- a/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp +++ b/tests/auto/network/socket/qlocalsocket/tst_qlocalsocket.cpp @@ -1129,7 +1129,7 @@ void tst_QLocalSocket::verifyListenWithDescriptor() } else if (abstract) { QVERIFY2(server.fullServerName().at(0) == QLatin1Char('@'), "abstract sockets should start with a '@'"); } else { - QVERIFY2(server.fullServerName() == path, "full server path doesn't match patch provided"); + QCOMPARE(server.fullServerName(), path); if (path.contains(QLatin1String("/"))) { QVERIFY2(server.serverName() == path.mid(path.lastIndexOf(QLatin1Char('/'))+1), "server name invalid short name"); } else { @@ -1153,8 +1153,10 @@ void tst_QLocalSocket::verifyListenWithDescriptor_data() QTest::addColumn<bool>("bound"); QTest::newRow("normal") << QDir::tempPath() + QLatin1Literal("/testsocket") << false << true; +#ifdef Q_OS_LINUX QTest::newRow("absrtact") << QString::fromLatin1("abstractsocketname") << true << true; QTest::newRow("abstractwithslash") << QString::fromLatin1("abstractsocketwitha/inthename") << true << true; +#endif QTest::newRow("no path") << QString::fromLatin1("/invalid/no path name speficied") << true << false; #endif |