Android: skip tst_QNetworkProxyFactory::genericSystemProxy
Android uses its own implementation of QNetworkProxyFactory, so the test of a generic implementation will never be working there. The "http_proxy" environment variable is simply ignored in Android's implementation. Fixes: QTBUG-87385 Pick-to: 6.3 6.2 Change-Id: I3c24e3481b70872d332310aa86c68adad9c2b7e6 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>bb10
parent
7c9b4f86b6
commit
ad9f748db5
|
|
@ -1,3 +0,0 @@
|
|||
# QTBUG-87385
|
||||
[genericSystemProxy]
|
||||
android
|
||||
|
|
@ -257,7 +257,7 @@ void tst_QNetworkProxyFactory::genericSystemProxy()
|
|||
QFETCH(int, port);
|
||||
|
||||
// We can only use the generic system proxy where available:
|
||||
#if !defined(Q_OS_WIN) && !defined(Q_OS_MACOS) && !QT_CONFIG(libproxy)
|
||||
#if !defined(Q_OS_WIN) && !defined(Q_OS_MACOS) && !defined(Q_OS_ANDROID) && !QT_CONFIG(libproxy)
|
||||
qputenv(envVar, url);
|
||||
const QList<QNetworkProxy> systemProxy = QNetworkProxyFactory::systemProxyForQuery();
|
||||
QCOMPARE(systemProxy.size(), 1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue