diff options
author | Graham Linden <graham@lindenlab.com> | 2013-08-26 14:57:54 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2013-08-26 14:57:54 -0700 |
commit | c50f44e04ed4c14dd19b18421878cc0094cee9b2 (patch) | |
tree | bd7418ba39e5aeac26c31df3b5dd7d4e4b676e73 /indra/llxml/tests/llcontrol_test.cpp | |
parent | bf55d287db305907b83909c09bc5842a5a7a709f (diff) | |
parent | 6e1138585bf745f73f0bb99ca62f77eeb273f1e4 (diff) |
Merge viewer-release 3.6.5
Diffstat (limited to 'indra/llxml/tests/llcontrol_test.cpp')
-rwxr-xr-x | indra/llxml/tests/llcontrol_test.cpp | 6 |
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); |