aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test/test.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:27 -0500
committerJacek Antonelli2008-08-15 23:45:27 -0500
commita8a62201ba762e98dff92cf49033e577fc34d8d4 (patch)
tree11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/test/test.cpp
parentSecond Life viewer sources 1.18.6.4-RC (diff)
downloadmeta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.zip
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.gz
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.bz2
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.xz
Second Life viewer sources 1.19.0.0
Diffstat (limited to '')
-rw-r--r--linden/indra/test/test.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/linden/indra/test/test.cpp b/linden/indra/test/test.cpp
index d4ad4fc..df4b037 100644
--- a/linden/indra/test/test.cpp
+++ b/linden/indra/test/test.cpp
@@ -14,12 +14,12 @@
14 * ("GPL"), unless you have obtained a separate licensing agreement 14 * ("GPL"), unless you have obtained a separate licensing agreement
15 * ("Other License"), formally executed by you and Linden Lab. Terms of 15 * ("Other License"), formally executed by you and Linden Lab. Terms of
16 * the GPL can be found in doc/GPL-license.txt in this distribution, or 16 * the GPL can be found in doc/GPL-license.txt in this distribution, or
17 * online at http://secondlife.com/developers/opensource/gplv2 17 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
18 * 18 *
19 * There are special exceptions to the terms and conditions of the GPL as 19 * There are special exceptions to the terms and conditions of the GPL as
20 * it is applied to this Source Code. View the full text of the exception 20 * it is applied to this Source Code. View the full text of the exception
21 * in the file doc/FLOSS-exception.txt in this software distribution, or 21 * in the file doc/FLOSS-exception.txt in this software distribution, or
22 * online at http://secondlife.com/developers/opensource/flossexception 22 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
23 * 23 *
24 * By copying, modifying or distributing this software, you acknowledge 24 * By copying, modifying or distributing this software, you acknowledge
25 * that you have read and understood your obligations described above, 25 * that you have read and understood your obligations described above,
@@ -170,6 +170,7 @@ static const apr_getopt_option_t TEST_CL_OPTIONS[] =
170 {"group", 'g', 1, "Run test group specified by option argument."}, 170 {"group", 'g', 1, "Run test group specified by option argument."},
171 {"skip", 's', 1, "Skip test number specified by option argument. Only works when a specific group is being tested"}, 171 {"skip", 's', 1, "Skip test number specified by option argument. Only works when a specific group is being tested"},
172 {"wait", 'w', 0, "Wait for input before exit."}, 172 {"wait", 'w', 0, "Wait for input before exit."},
173 {"debug", 'd', 0, "Emit full debug logs."},
173 {0, 0, 0, 0} 174 {0, 0, 0, 0}
174}; 175};
175 176
@@ -224,7 +225,8 @@ int main(int argc, char **argv)
224 LLError::initForApplication("."); 225 LLError::initForApplication(".");
225 LLError::setFatalFunction(wouldHaveCrashed); 226 LLError::setFatalFunction(wouldHaveCrashed);
226 LLError::setDefaultLevel(LLError::LEVEL_ERROR); 227 LLError::setDefaultLevel(LLError::LEVEL_ERROR);
227 // *FIX: should come from error config file 228 //< *TODO: should come from error config file. Note that we
229 // have a command line option that sets this to debug.
228 230
229#ifdef CTYPE_WORKAROUND 231#ifdef CTYPE_WORKAROUND
230 ctype_workaround(); 232 ctype_workaround();
@@ -286,6 +288,11 @@ int main(int argc, char **argv)
286 case 'w': 288 case 'w':
287 wait_at_exit = true; 289 wait_at_exit = true;
288 break; 290 break;
291 case 'd':
292 // *TODO: should come from error config file. We set it to
293 // ERROR by default, so this allows full debug levels.
294 LLError::setDefaultLevel(LLError::LEVEL_DEBUG);
295 break;
289 default: 296 default:
290 stream_usage(std::cerr, argv[0]); 297 stream_usage(std::cerr, argv[0]);
291 return 1; 298 return 1;