Skip smb-path test of tst_QNetworkReply when using Docker test servers

The tests of smb protocol only work in the CI network. Therefore,
the docker-based test server for Windows can't pass all the tests of
QNetworkReply.

These two tests should be reworked when adding Samba server to the
docker-based test servers later on.

Task-number: QTBUG-72861
Change-Id: I54e639b5414760ee929d0d28fe10f9e021aff7dc
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
This commit is contained in:
Ryan Chu 2019-01-04 16:29:30 +01:00
parent e70230405d
commit 574ac8734d

View File

@ -1809,6 +1809,11 @@ void tst_QNetworkReply::getFromFileSpecial_data()
void tst_QNetworkReply::getFromFileSpecial()
{
#if defined(QT_TEST_SERVER) && defined(Q_OS_WIN)
if (qstrcmp(QTest::currentDataTag(), "smb-path") == 0)
QSKIP("Docker-based test server doesn't support smb protocol yet");
#endif
QFETCH(QString, fileName);
QFETCH(QString, url);
@ -3202,6 +3207,11 @@ void tst_QNetworkReply::ioGetFromFileSpecial_data()
void tst_QNetworkReply::ioGetFromFileSpecial()
{
#if defined(QT_TEST_SERVER) && defined(Q_OS_WIN)
if (qstrcmp(QTest::currentDataTag(), "smb-path") == 0)
QSKIP("Docker-based test server doesn't support smb protocol yet");
#endif
QFETCH(QString, fileName);
QFETCH(QString, url);