diff options
author | David Faure <faure@kde.org> | 2012-08-01 17:28:39 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-09 13:48:13 +0200 |
commit | a23da5fd6bca918366cfe744270e590905e97412 (patch) | |
tree | 95ba5a68a4bf14f6bdcfd1e5b33c5a92ad272433 /tests/auto/corelib/io/qstandardpaths | |
parent | d1bb10d9b8f2d072dba8020e354326f91f5981f4 (diff) |
Add bool QStandardPaths::isTestModeEnabled()
Library code might need to know this, e.g. when calling an external
process, to give it the right configuration. (For instance when
ksycoca code calls kbuildsycoca to recreate the DB at the right place).
Change-Id: I343ddefff816586f9d391973c08ff1e1ad86bf0e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/io/qstandardpaths')
-rw-r--r-- | tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp b/tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp index 29f6fe9da4..319a4607ed 100644 --- a/tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp +++ b/tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp @@ -159,7 +159,9 @@ void tst_qstandardpaths::testCustomLocations() void tst_qstandardpaths::enableTestMode() { + QVERIFY(!QStandardPaths::isTestModeEnabled()); QStandardPaths::enableTestMode(true); + QVERIFY(QStandardPaths::isTestModeEnabled()); #ifdef Q_XDG_PLATFORM setCustomLocations(); // for the global config dir |