aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test/llapp_tut.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/test/llapp_tut.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/test/llapp_tut.cpp')
-rw-r--r--linden/indra/test/llapp_tut.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/linden/indra/test/llapp_tut.cpp b/linden/indra/test/llapp_tut.cpp
index a238cb3..3223f91 100644
--- a/linden/indra/test/llapp_tut.cpp
+++ b/linden/indra/test/llapp_tut.cpp
@@ -150,4 +150,17 @@ namespace tut
150 bool ok = mApp->parseCommandOptions(ARGC, ARGV); 150 bool ok = mApp->parseCommandOptions(ARGC, ARGV);
151 ensure("command line parse failure", !ok); 151 ensure("command line parse failure", !ok);
152 } 152 }
153
154
155 template<> template<>
156 void application_object_t::test<5>()
157 {
158 LLSD options;
159 options["boolean-test"] = true;
160 mApp->setOptionData(LLApp::PRIORITY_GENERAL_CONFIGURATION, options);
161 ensure("bool set", mApp->getOption("boolean-test").asBoolean());
162 options["boolean-test"] = false;
163 mApp->setOptionData(LLApp::PRIORITY_RUNTIME_OVERRIDE, options);
164 ensure("bool unset", !mApp->getOption("boolean-test").asBoolean());
165 }
153} 166}