summaryrefslogtreecommitdiff
path: root/indra/llxml/tests
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2013-08-02 10:51:11 -0400
committerNat Goodspeed <nat@lindenlab.com>2013-08-02 10:51:11 -0400
commitacda43ed3881eeab60ee9edfdf76ac8eebd723cc (patch)
treef59c0d1a12f7a3b0dc14498a9a0f57e2a8f66ef5 /indra/llxml/tests
parent32a953f65eae51850bad1b2c4c2a63d3dff12a68 (diff)
parent0906d000b36d4da2116e0b9347a37598c918ce08 (diff)
CHOP-959: merge --graphicslevel fix up to tip
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);