summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/tests
diff options
context:
space:
mode:
authorMonty Brandenberg <monty@lindenlab.com>2012-06-21 21:32:33 -0400
committerMonty Brandenberg <monty@lindenlab.com>2012-06-21 21:32:33 -0400
commited5db306545e414a1c975c1fff5908b6c2fe1389 (patch)
tree9bc2aed2a3ef7fa2d7a49ebc67a64f63890d24e0 /indra/llcorehttp/tests
parenteed28348f2668c93bc572cffd8a284e65228ed02 (diff)
Preparing for better shutdown/cleanup logic.
Diffstat (limited to 'indra/llcorehttp/tests')
-rw-r--r--indra/llcorehttp/tests/test_httprequest.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/indra/llcorehttp/tests/test_httprequest.hpp b/indra/llcorehttp/tests/test_httprequest.hpp
index cac927cfca..8e62cd0f92 100644
--- a/indra/llcorehttp/tests/test_httprequest.hpp
+++ b/indra/llcorehttp/tests/test_httprequest.hpp
@@ -149,7 +149,7 @@ void HttpRequestTestObjectType::test<1>()
// create a new ref counted object with an implicit reference
req = new HttpRequest();
- ensure(mMemTotal < GetMemTotal());
+ ensure("Memory being used", mMemTotal < GetMemTotal());
// release the request object
delete req;
@@ -158,7 +158,7 @@ void HttpRequestTestObjectType::test<1>()
HttpRequest::destroyService();
// make sure we didn't leak any memory
- ensure(mMemTotal == GetMemTotal());
+ ensure("Memory returned", mMemTotal == GetMemTotal());
}
catch (...)
{
@@ -187,11 +187,11 @@ void HttpRequestTestObjectType::test<2>()
// create a new ref counted object with an implicit reference
req = new HttpRequest();
- ensure(mMemTotal < GetMemTotal());
+ ensure("Memory being used", mMemTotal < GetMemTotal());
// Issue a NoOp
HttpHandle handle = req->requestNoOp(NULL);
- ensure(handle != LLCORE_HTTP_HANDLE_INVALID);
+ ensure("Request issued", handle != LLCORE_HTTP_HANDLE_INVALID);
// release the request object
delete req;
@@ -199,15 +199,15 @@ void HttpRequestTestObjectType::test<2>()
// We're still holding onto the operation which is
// sitting, unserviced, on the request queue so...
- ensure(mMemTotal < GetMemTotal());
+ ensure("Memory being used 2", mMemTotal < GetMemTotal());
// Request queue should have two references: global singleton & service object
ensure("Two references to request queue", 2 == HttpRequestQueue::instanceOf()->getRefCount());
// Okay, tear it down
HttpRequest::destroyService();
- // printf("Old mem: %d, New mem: %d\n", mMemTotal, GetMemTotal());
- ensure(mMemTotal == GetMemTotal());
+ printf("Old mem: %d, New mem: %d\n", mMemTotal, GetMemTotal());
+ ensure("Memory returned", mMemTotal == GetMemTotal());
}
catch (...)
{