diff options
author | Graham Linden <graham@lindenlab.com> | 2019-02-28 18:28:13 -0800 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-02-28 18:28:13 -0800 |
commit | bf8dee73f90f74f3eb9fd544dc9673defa52817f (patch) | |
tree | 3e8a711051c699fe96afcfead0e3fd4dc4f19db3 /indra/llmessage/tests/llhttpclient_test.cpp | |
parent | c1d2416826406631807f153e7de9d2b790b0caa5 (diff) | |
parent | e1a76999c3e8aad337d765fcd6eb50c8191409ea (diff) |
Merge 6.1.1
Diffstat (limited to 'indra/llmessage/tests/llhttpclient_test.cpp')
-rw-r--r-- | indra/llmessage/tests/llhttpclient_test.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/llmessage/tests/llhttpclient_test.cpp b/indra/llmessage/tests/llhttpclient_test.cpp index 9356a14f1f..78faa66a0d 100644 --- a/indra/llmessage/tests/llhttpclient_test.cpp +++ b/indra/llmessage/tests/llhttpclient_test.cpp @@ -41,6 +41,7 @@ #include "llpumpio.h" #include "lliosocket.h" +#include "llstring.h" #include "stringize.h" #include "llcleanup.h" @@ -50,13 +51,13 @@ namespace tut { public: HTTPClientTestData(): - PORT(getenv("PORT")), + PORT(LLStringUtil::getenv("PORT")), // Turning NULL PORT into empty string doesn't make things work; // that's just to keep this initializer from blowing up. We test // PORT separately in the constructor body. - local_server(STRINGIZE("http://127.0.0.1:" << (PORT? PORT : "") << "/")) + local_server(STRINGIZE("http://127.0.0.1:" << PORT << "/")) { - ensure("Set environment variable PORT to local test server port", PORT); + ensure("Set environment variable PORT to local test server port", !PORT.empty()); apr_pool_create(&mPool, NULL); LLCurl::initClass(false); mClientPump = new LLPumpIO(mPool); @@ -87,7 +88,7 @@ namespace tut } } - const char* const PORT; + const std::string PORT; const std::string local_server; private: |