diff options
author | David Seikel | 2011-02-20 20:31:57 +1000 |
---|---|---|
committer | David Seikel | 2011-02-20 20:31:57 +1000 |
commit | d6666d0776985bada40f19c623b86d82a4113f92 (patch) | |
tree | eb4d234a313c51b40f6d53d4a59bdc831a7cd0fc /linden/indra/test | |
parent | Remove catering to LL's probably illegal attempt to block copying of open sou... (diff) | |
parent | Reduce the logging spam to warnings. Debug was too much. (diff) | |
download | meta-impy-d6666d0776985bada40f19c623b86d82a4113f92.zip meta-impy-d6666d0776985bada40f19c623b86d82a4113f92.tar.gz meta-impy-d6666d0776985bada40f19c623b86d82a4113f92.tar.bz2 meta-impy-d6666d0776985bada40f19c623b86d82a4113f92.tar.xz |
Merge branch 'weekly' into branding
Conflicts (solved):
linden/indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp
linden/indra/newview/llappviewer.cpp
linden/indra/newview/llappviewerwin32.cpp
Diffstat (limited to 'linden/indra/test')
-rw-r--r-- | linden/indra/test/lltemplatemessagebuilder_tut.cpp | 2 | ||||
-rw-r--r-- | linden/indra/test/message_tut.cpp | 2 | ||||
-rw-r--r-- | linden/indra/test/test.cpp | 16 |
3 files changed, 5 insertions, 15 deletions
diff --git a/linden/indra/test/lltemplatemessagebuilder_tut.cpp b/linden/indra/test/lltemplatemessagebuilder_tut.cpp index 5b33d02..9fecc2f 100644 --- a/linden/indra/test/lltemplatemessagebuilder_tut.cpp +++ b/linden/indra/test/lltemplatemessagebuilder_tut.cpp | |||
@@ -35,7 +35,6 @@ | |||
35 | #include "linden_common.h" | 35 | #include "linden_common.h" |
36 | #include "lltut.h" | 36 | #include "lltut.h" |
37 | 37 | ||
38 | #include "llapr.h" | ||
39 | #include "llmessagetemplate.h" | 38 | #include "llmessagetemplate.h" |
40 | #include "llquaternion.h" | 39 | #include "llquaternion.h" |
41 | #include "lltemplatemessagebuilder.h" | 40 | #include "lltemplatemessagebuilder.h" |
@@ -59,7 +58,6 @@ namespace tut | |||
59 | static bool init = false; | 58 | static bool init = false; |
60 | if(! init) | 59 | if(! init) |
61 | { | 60 | { |
62 | ll_init_apr(); | ||
63 | const F32 circuit_heartbeat_interval=5; | 61 | const F32 circuit_heartbeat_interval=5; |
64 | const F32 circuit_timeout=100; | 62 | const F32 circuit_timeout=100; |
65 | 63 | ||
diff --git a/linden/indra/test/message_tut.cpp b/linden/indra/test/message_tut.cpp index 3fede26..694db52 100644 --- a/linden/indra/test/message_tut.cpp +++ b/linden/indra/test/message_tut.cpp | |||
@@ -35,7 +35,6 @@ | |||
35 | #include "linden_common.h" | 35 | #include "linden_common.h" |
36 | #include "lltut.h" | 36 | #include "lltut.h" |
37 | 37 | ||
38 | #include "llapr.h" | ||
39 | #include "llmessageconfig.h" | 38 | #include "llmessageconfig.h" |
40 | #include "llsdserialize.h" | 39 | #include "llsdserialize.h" |
41 | #include "llversionserver.h" | 40 | #include "llversionserver.h" |
@@ -68,7 +67,6 @@ namespace tut | |||
68 | static bool init = false; | 67 | static bool init = false; |
69 | if(!init) | 68 | if(!init) |
70 | { | 69 | { |
71 | ll_init_apr(); | ||
72 | //init_prehash_data(); | 70 | //init_prehash_data(); |
73 | init = true; | 71 | init = true; |
74 | } | 72 | } |
diff --git a/linden/indra/test/test.cpp b/linden/indra/test/test.cpp index ba81c6e..b699f74 100644 --- a/linden/indra/test/test.cpp +++ b/linden/indra/test/test.cpp | |||
@@ -43,8 +43,8 @@ | |||
43 | #include "linden_common.h" | 43 | #include "linden_common.h" |
44 | #include "llerrorcontrol.h" | 44 | #include "llerrorcontrol.h" |
45 | #include "lltut.h" | 45 | #include "lltut.h" |
46 | #include "aiaprpool.h" | ||
46 | 47 | ||
47 | #include "apr_pools.h" | ||
48 | #include "apr_getopt.h" | 48 | #include "apr_getopt.h" |
49 | 49 | ||
50 | // the CTYPE_WORKAROUND is needed for linux dev stations that don't | 50 | // the CTYPE_WORKAROUND is needed for linux dev stations that don't |
@@ -248,17 +248,12 @@ int main(int argc, char **argv) | |||
248 | ctype_workaround(); | 248 | ctype_workaround(); |
249 | #endif | 249 | #endif |
250 | 250 | ||
251 | apr_initialize(); | 251 | LLAPRPool pool; |
252 | apr_pool_t* pool = NULL; | 252 | pool.create(); |
253 | if(APR_SUCCESS != apr_pool_create(&pool, NULL)) | ||
254 | { | ||
255 | std::cerr << "Unable to initialize pool" << std::endl; | ||
256 | return 1; | ||
257 | } | ||
258 | apr_getopt_t* os = NULL; | 253 | apr_getopt_t* os = NULL; |
259 | if(APR_SUCCESS != apr_getopt_init(&os, pool, argc, argv)) | 254 | if(APR_SUCCESS != apr_getopt_init(&os, pool(), argc, argv)) |
260 | { | 255 | { |
261 | std::cerr << "Unable to pool" << std::endl; | 256 | std::cerr << "Unable to initialize the arguments for parsing by apr_getopt()." << std::endl; |
262 | return 1; | 257 | return 1; |
263 | } | 258 | } |
264 | 259 | ||
@@ -360,6 +355,5 @@ int main(int argc, char **argv) | |||
360 | s.close(); | 355 | s.close(); |
361 | } | 356 | } |
362 | 357 | ||
363 | apr_terminate(); | ||
364 | return 0; | 358 | return 0; |
365 | } | 359 | } |