Resolve build failure in network stress tests.

strncmp() needs 3 arguments, not 2.

Change-Id: Ia7077108a533321d5218cc35fd78ada8863f8200
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
Rolland Dudemaine 2016-03-24 11:02:27 +01:00
parent f72152381b
commit 2b09d371eb
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ void tst_NetworkRemoteStressTest::init()
{ {
// clear the internal cache // clear the internal cache
#ifndef QT_BUILD_INTERNAL #ifndef QT_BUILD_INTERNAL
if (strncmp(QTest::currentTestFunction(), "nam") == 0) if (strncmp(QTest::currentTestFunction(), "nam", 3) == 0)
QSKIP("QNetworkAccessManager tests disabled"); QSKIP("QNetworkAccessManager tests disabled");
#endif #endif
} }

View File

@ -135,7 +135,7 @@ void tst_NetworkStressTest::init()
{ {
// clear the internal cache // clear the internal cache
#ifndef QT_BUILD_INTERNAL #ifndef QT_BUILD_INTERNAL
if (strncmp(QTest::currentTestFunction(), "nam") == 0) if (strncmp(QTest::currentTestFunction(), "nam", 3) == 0)
QSKIP("QNetworkAccessManager tests disabled"); QSKIP("QNetworkAccessManager tests disabled");
#endif #endif
} }