summaryrefslogtreecommitdiff
path: root/indra/test
diff options
context:
space:
mode:
authorRichard Linden <none@none>2013-01-08 23:50:27 -0800
committerRichard Linden <none@none>2013-01-08 23:50:27 -0800
commit0ba9a00c3116b69745f2d5070ce772d5d4965dbf (patch)
treed79795487a3bddf08ade8cef0a2a96d3e1ffb92f /indra/test
parent2f91ffb45c44c3406b1b97dc987cfb7593852a46 (diff)
SH-3468 WIP add memory tracking base class
cleaned up hacks used to get unit tests working LLTrace::init now supports recursive initialization/cleanup put NOMINMAX back in win32 header wrappers
Diffstat (limited to 'indra/test')
-rw-r--r--indra/test/io.cpp6
-rw-r--r--indra/test/llhttpdate_tut.cpp2
-rw-r--r--indra/test/lliohttpserver_tut.cpp2
-rw-r--r--indra/test/test.cpp2
4 files changed, 1 insertions, 11 deletions
diff --git a/indra/test/io.cpp b/indra/test/io.cpp
index f2b4a5339c..b3eabc2e8a 100644
--- a/indra/test/io.cpp
+++ b/indra/test/io.cpp
@@ -831,7 +831,6 @@ namespace tut
public:
PumpAndChainTestData()
{
- LLCommon::initClass();
apr_pool_create(&mPool, NULL);
mPump = new LLPumpIO(mPool);
}
@@ -841,7 +840,6 @@ namespace tut
mChain.clear();
delete mPump;
apr_pool_destroy(mPool);
- LLCommon::cleanupClass();
}
};
typedef test_group<PumpAndChainTestData> PumpAndChainTestGroup;
@@ -912,7 +910,6 @@ namespace tut
pipe_and_pump_fitness()
{
- LLCommon::initClass();
LLFrameTimer::updateFrameTime();
apr_pool_create(&mPool, NULL);
mPump = new LLPumpIO(mPool);
@@ -927,7 +924,6 @@ namespace tut
mSocket.reset();
delete mPump;
apr_pool_destroy(mPool);
- LLCommon::cleanupClass();
}
protected:
@@ -1191,11 +1187,9 @@ namespace tut
LLSimpleRPCResponse(LLSD* response) :
mResponsePtr(response)
{
- LLCommon::initClass();
}
~LLSimpleRPCResponse()
{
- LLCommon::cleanupClass();
}
virtual bool response(LLPumpIO* pump)
{
diff --git a/indra/test/llhttpdate_tut.cpp b/indra/test/llhttpdate_tut.cpp
index d6f0ba5e66..ecf734ee90 100644
--- a/indra/test/llhttpdate_tut.cpp
+++ b/indra/test/llhttpdate_tut.cpp
@@ -41,11 +41,9 @@ namespace tut
{
httpdate_data()
{
- LLCommon::initClass();
}
~httpdate_data()
{
- LLCommon::cleanupClass();
}
LLDate some_date;
};
diff --git a/indra/test/lliohttpserver_tut.cpp b/indra/test/lliohttpserver_tut.cpp
index e7af09f80b..3fa5c8dd42 100644
--- a/indra/test/lliohttpserver_tut.cpp
+++ b/indra/test/lliohttpserver_tut.cpp
@@ -77,7 +77,6 @@ namespace tut
HTTPServiceTestData()
: mResponse(NULL)
{
- LLCommon::initClass();
LLHTTPStandardServices::useServices();
LLHTTPRegistrar::buildAllServices(mRoot);
mRoot.addNode("/delayed/echo", new DelayedEcho(this));
@@ -86,7 +85,6 @@ namespace tut
~HTTPServiceTestData()
{
- LLCommon::cleanupClass();
}
LLHTTPNode mRoot;
diff --git a/indra/test/test.cpp b/indra/test/test.cpp
index 8bd302ce7a..28de88201c 100644
--- a/indra/test/test.cpp
+++ b/indra/test/test.cpp
@@ -514,8 +514,8 @@ int main(int argc, char **argv)
#endif
ll_init_apr();
- LLTrace::init();
+ LLTrace::init();
apr_getopt_t* os = NULL;
if(APR_SUCCESS != apr_getopt_init(&os, gAPRPoolp, argc, argv))
{