diff options
author | Oz Linden <oz@lindenlab.com> | 2013-08-19 15:15:15 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-08-19 15:15:15 -0400 |
commit | 82bf4e4db2bdb9effdf64e9edaa76a78913e25d3 (patch) | |
tree | 7f44a97fdf51222e743e18464d1b2d0ccb5b830e /indra/llxml/tests/llcontrol_test.cpp | |
parent | 731fe3e7c6287c63134c1a08572f9d97a0eb0ff0 (diff) | |
parent | 86b4019684af96a64a1d439851f177d7c18e4c24 (diff) |
merge changes for DRTVWR-285
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); |