summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/proxypac/tst_proxypac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/proxypac/tst_proxypac.cpp')
-rw-r--r--tests/auto/widgets/proxypac/tst_proxypac.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/widgets/proxypac/tst_proxypac.cpp b/tests/auto/widgets/proxypac/tst_proxypac.cpp
index f9340341b..934e23fde 100644
--- a/tests/auto/widgets/proxypac/tst_proxypac.cpp
+++ b/tests/auto/widgets/proxypac/tst_proxypac.cpp
@@ -46,6 +46,10 @@ private slots:
void tst_ProxyPac::proxypac()
{
+ const QString fromEnv = QString::fromLocal8Bit(qgetenv("QTWEBENGINE_CHROMIUM_FLAGS"));
+ if (!fromEnv.contains("--proxy-pac-url"))
+ qFatal("--proxy-pac-url argument is not passed.");
+
ProxyServer proxyServer1;
proxyServer1.setPort(5551);
proxyServer1.run();