diff options
author | Monty Brandenberg <monty@lindenlab.com> | 2012-05-09 07:06:15 -0700 |
---|---|---|
committer | Monty Brandenberg <monty@lindenlab.com> | 2012-05-09 07:06:15 -0700 |
commit | 7a9acdc68a454886efc38cd4558b64856f4a9a04 (patch) | |
tree | d48c555c2d6c7b08380d04590065b2b58bf37505 /indra/llcorehttp/tests/test_httprequest.hpp | |
parent | 2f496ecaeeb0ab90c29ca6f0414cad1fe16cd4b0 (diff) |
Try to get some more correct curl init into the unit testing.
Diffstat (limited to 'indra/llcorehttp/tests/test_httprequest.hpp')
-rw-r--r-- | indra/llcorehttp/tests/test_httprequest.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llcorehttp/tests/test_httprequest.hpp b/indra/llcorehttp/tests/test_httprequest.hpp index ab25a2eb1a..a77a36c96e 100644 --- a/indra/llcorehttp/tests/test_httprequest.hpp +++ b/indra/llcorehttp/tests/test_httprequest.hpp @@ -35,6 +35,7 @@ #include <curl/curl.h> #include "test_allocator.h" +#include "llcorehttp_test.h" using namespace LLCoreInt; @@ -334,6 +335,8 @@ void HttpRequestTestObjectType::test<4>() template <> template <> void HttpRequestTestObjectType::test<5>() { + init_curl(); + set_test_name("HttpRequest GET + Stop execution"); // Handler can be stack-allocated *if* there are no dangling @@ -416,6 +419,8 @@ void HttpRequestTestObjectType::test<5>() ensure("Two handler calls on the way out", 2 == mHandlerCalls); // printf("Old mem: %d, New mem: %d\n", mMemTotal, GetMemTotal()); ensure("Memory usage back to that at entry", mMemTotal == GetMemTotal()); + + term_curl(); } } // end namespace tut |