aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test/llapp_tut.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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}