diff options
author | Tamas Zakor <ztamas@inf.u-szeged.hu> | 2019-08-26 14:55:45 +0200 |
---|---|---|
committer | Tamas Zakor <ztamas@inf.u-szeged.hu> | 2019-09-12 12:30:47 +0200 |
commit | c795c96eaa740d6743293af8c6b01bcc58cec64a (patch) | |
tree | 3f1551827174bc6b7fefa4f244a4c591a53c27bc /tests/auto | |
parent | fdc06601fb120d03b6a17a42805f75f760025011 (diff) |
Add environment variable check for tst_ProxyPac::proxypac()
Yield error message if --proxy-pac-url argument is not passed.
Change-Id: I9a5685982c0a9d8decc65ad9c728357c038ef0a0
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/widgets/proxypac/tst_proxypac.cpp | 4 |
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(); |