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:
parent
f72152381b
commit
2b09d371eb
@ -144,7 +144,7 @@ void tst_NetworkRemoteStressTest::init()
|
||||
{
|
||||
// clear the internal cache
|
||||
#ifndef QT_BUILD_INTERNAL
|
||||
if (strncmp(QTest::currentTestFunction(), "nam") == 0)
|
||||
if (strncmp(QTest::currentTestFunction(), "nam", 3) == 0)
|
||||
QSKIP("QNetworkAccessManager tests disabled");
|
||||
#endif
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ void tst_NetworkStressTest::init()
|
||||
{
|
||||
// clear the internal cache
|
||||
#ifndef QT_BUILD_INTERNAL
|
||||
if (strncmp(QTest::currentTestFunction(), "nam") == 0)
|
||||
if (strncmp(QTest::currentTestFunction(), "nam", 3) == 0)
|
||||
QSKIP("QNetworkAccessManager tests disabled");
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user