From bde7cfb1a7f4139ce1027cc422f51897b7475b5a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 25 Jan 2021 00:28:11 +0100 Subject: [PATCH] Show WX_TEST_WEBREQUEST_URL being used in the test Make it clear which URL do we actually use. --- tests/net/webrequest.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/net/webrequest.cpp b/tests/net/webrequest.cpp index 17a2fe26da..225d0e8473 100644 --- a/tests/net/webrequest.cpp +++ b/tests/net/webrequest.cpp @@ -50,8 +50,19 @@ public: // it returns false, as this indicates that web requests tests are disabled. bool InitBaseURL() { - if ( !wxGetEnv("WX_TEST_WEBREQUEST_URL", &baseURL) ) + if ( wxGetEnv("WX_TEST_WEBREQUEST_URL", &baseURL) ) + { + static bool s_shown = false; + if ( !s_shown ) + { + s_shown = true; + WARN("Using non-default root URL " << baseURL); + } + } + else + { baseURL = WX_TEST_WEBREQUEST_URL_DEFAULT; + } return baseURL != "0"; }