summaryrefslogtreecommitdiff
path: root/indra/llxml/tests
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2013-08-07 12:17:39 -0400
committerOz Linden <oz@lindenlab.com>2013-08-07 12:17:39 -0400
commit86b4019684af96a64a1d439851f177d7c18e4c24 (patch)
tree45a8166a884811d81d4d0e6189514378ca1661ce /indra/llxml/tests
parentcfd80c02c317591b7a52f719e3560de8912660b5 (diff)
parentf4943bb2e6d59103d6e6a511ff8f06adb1c90a41 (diff)
merge changes for DRTVWR-333
Diffstat (limited to 'indra/llxml/tests')
-rwxr-xr-xindra/llxml/tests/llcontrol_test.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llxml/tests/llcontrol_test.cpp b/indra/llxml/tests/llcontrol_test.cpp
index ede81956ec..c273773c9b 100755
--- a/indra/llxml/tests/llcontrol_test.cpp
+++ b/indra/llxml/tests/llcontrol_test.cpp
@@ -128,7 +128,11 @@ namespace tut
template<> template<>
void control_group_t::test<3>()
{
- int results = mCG->loadFromFile(mTestConfigFile.c_str());
+ // Pass default_values = true. This tells loadFromFile() we're loading
+ // a default settings file that declares variables, rather than a user
+ // settings file. When loadFromFile() encounters an unrecognized user
+ // settings variable, it forcibly preserves it (CHOP-962).
+ int results = mCG->loadFromFile(mTestConfigFile.c_str(), true);
LLControlVariable* control = mCG->getControl("TestSetting");
LLSD new_value = 13;
control->setValue(new_value, FALSE);