diff options
| author | Logan Dethrow <log@lindenlab.com> | 2011-09-09 15:22:11 -0400 |
|---|---|---|
| committer | Logan Dethrow <log@lindenlab.com> | 2011-09-09 15:22:11 -0400 |
| commit | 3151b6ce503ffc877589422c5559647d363d5bf1 (patch) | |
| tree | 617ef85d45bcc5d66c6e1284d126498ed07b4c6a /indra/test/llhttpclient_tut.cpp | |
| parent | 8a952e42e97cfb286192aba0fbfc43986912cd29 (diff) | |
Fixed llhttpclient_tut.cpp by initializing the LLCurl class during test setup.
Diffstat (limited to 'indra/test/llhttpclient_tut.cpp')
| -rw-r--r-- | indra/test/llhttpclient_tut.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/indra/test/llhttpclient_tut.cpp b/indra/test/llhttpclient_tut.cpp index 03759001ae..c5e889b860 100644 --- a/indra/test/llhttpclient_tut.cpp +++ b/indra/test/llhttpclient_tut.cpp @@ -84,10 +84,9 @@ namespace tut public: HTTPClientTestData() { - apr_pool_create(&mPool, NULL); - mServerPump = new LLPumpIO(mPool); - mClientPump = new LLPumpIO(mPool); - + LLCurl::initClass(false); + mServerPump = new LLPumpIO(); + mClientPump = new LLPumpIO(); LLHTTPClient::setPump(*mClientPump); } @@ -95,12 +94,11 @@ namespace tut { delete mServerPump; delete mClientPump; - apr_pool_destroy(mPool); } void setupTheServer() { - LLHTTPNode& root = LLIOHTTPServer::create(mPool, *mServerPump, 8888); + LLHTTPNode& root = LLIOHTTPServer::create(*mServerPump, 8888); LLHTTPStandardServices::useServices(); LLHTTPRegistrar::buildAllServices(root); |
