Autotest: when using libproxy, QNetworkProxyFactory isn't generic

Looks like whoever created the blacklist never tried to figure out why
it happened.

Change-Id: I84e45059a888497fb55ffffd14d2fb29e32a4521
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Thiago Macieira 2017-07-20 01:03:03 -07:00 committed by Timur Pocheptsov
parent 1394610c79
commit 84fcc38955
3 changed files with 4 additions and 4 deletions

View File

@ -1,2 +0,0 @@
[genericSystemProxy]
ubuntu-14.04

View File

@ -4,6 +4,6 @@
CONFIG += testcase
TARGET = tst_qnetworkproxyfactory
QT = core network testlib
QT = core network-private testlib
SOURCES += tst_qnetworkproxyfactory.cpp

View File

@ -44,6 +44,8 @@
#include <QSysInfo>
#include <QThread>
#include <private/qtnetworkglobal_p.h>
class tst_QNetworkProxyFactory : public QObject {
Q_OBJECT
@ -367,7 +369,7 @@ void tst_QNetworkProxyFactory::genericSystemProxy()
QFETCH(int, port);
// The generic system proxy is only available on the following platforms
#if (!defined Q_OS_WIN) && (!defined Q_OS_OSX)
#if (!defined Q_OS_WIN) && (!defined Q_OS_OSX) && !QT_CONFIG(libproxy)
qputenv(envVar, url);
const QList<QNetworkProxy> systemProxy = QNetworkProxyFactory::systemProxyForQuery();
QCOMPARE(systemProxy.size(), 1);