aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-05-22 15:15:00 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-05-23 16:41:22 +0200
commit8917e0cecd80a5d673ac4a6d6586b472aa019d1b (patch)
tree62308ccda4de90a3aed9f8eb882cfa4344f4d604 /src/lib/corelib/language
parent427f5e07fd05a2f4ca855054fae640646b63c800 (diff)
Do not let the autotests pollute the profiles namespace.
Introduce and use the new class TemporaryProfile whenever profiles need to be created as part of a test. Change-Id: I3d91f112342b1cb2861cbe9d2c96deac7f762cd4 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/corelib/language')
-rw-r--r--src/lib/corelib/language/tst_language.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/corelib/language/tst_language.cpp b/src/lib/corelib/language/tst_language.cpp
index d3c7d89e4..56876bb32 100644
--- a/src/lib/corelib/language/tst_language.cpp
+++ b/src/lib/corelib/language/tst_language.cpp
@@ -1030,7 +1030,8 @@ void TestLanguage::profileValuesAndOverriddenValues()
bool exceptionCaught = false;
try {
Settings settings((QString()));
- Profile profile(QLatin1String("tst_lang_profile"), &settings); // TODO: Make sure it's removed afterwards.
+ TemporaryProfile tp(QLatin1String("tst_lang_profile"), &settings);
+ Profile profile = tp.p;
profile.setValue("dummy.defines", "IN_PROFILE");
profile.setValue("dummy.cFlags", "IN_PROFILE");
profile.setValue("dummy.cxxFlags", "IN_PROFILE");