diff options
author | Sergio Ahumada <sergio.ahumada@nokia.com> | 2012-09-04 12:40:16 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-14 06:24:38 +0200 |
commit | 34cd8fd566cd61385db12112d9515b0d5388dad3 (patch) | |
tree | 0f311e165c03c040f2c32261f96d80965443d4c6 /tests/auto/gui/kernel/qkeysequence | |
parent | 6fd1895b918c45d8404ff38319f508f0357cba27 (diff) |
tests: Don't omit the body of a test function with QT_BUILD_INTERNAL
Changing it outside of the test function definition to avoid running
empty/inapplicable test functions.
Change-Id: I713560cde7f715696984ed082d682900f5f1bcdd
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
Diffstat (limited to 'tests/auto/gui/kernel/qkeysequence')
-rw-r--r-- | tests/auto/gui/kernel/qkeysequence/tst_qkeysequence.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/gui/kernel/qkeysequence/tst_qkeysequence.cpp b/tests/auto/gui/kernel/qkeysequence/tst_qkeysequence.cpp index 766352f918..e479e7da24 100644 --- a/tests/auto/gui/kernel/qkeysequence/tst_qkeysequence.cpp +++ b/tests/auto/gui/kernel/qkeysequence/tst_qkeysequence.cpp @@ -131,7 +131,9 @@ private slots: void parseString(); void fromString_data(); void fromString(); +#ifdef QT_BUILD_INTERNAL void ensureSorted(); +#endif void standardKeys_data(); void standardKeys(); void keyBindings(); @@ -299,9 +301,9 @@ void tst_QKeySequence::checkMultipleCodes() * We must ensure that the keyBindings data is always sorted * so that we can safely perform binary searches. */ +#ifdef QT_BUILD_INTERNAL void tst_QKeySequence::ensureSorted() { -#if defined(QT_BUILD_INTERNAL) uint N = QKeySequencePrivate::numberOfKeyBindings; uint val = QKeySequencePrivate::keyBindings[0].shortcut; for ( uint i = 1 ; i < N ; ++i) { @@ -311,8 +313,8 @@ void tst_QKeySequence::ensureSorted() QVERIFY(nextval >= val); val = nextval; } -#endif } +#endif void tst_QKeySequence::standardKeys_data() { |