summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/statemachine
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@nokia.com>2012-09-04 12:40:16 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-14 06:24:38 +0200
commit34cd8fd566cd61385db12112d9515b0d5388dad3 (patch)
tree0f311e165c03c040f2c32261f96d80965443d4c6 /tests/auto/corelib/statemachine
parent6fd1895b918c45d8404ff38319f508f0357cba27 (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/corelib/statemachine')
-rw-r--r--tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp b/tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp
index 15f23e05cd..fc44998c63 100644
--- a/tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp
+++ b/tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp
@@ -98,7 +98,9 @@ class tst_QStateMachine : public QObject
private slots:
void rootState();
void machineWithParent();
+#ifdef QT_BUILD_INTERNAL
void addAndRemoveState();
+#endif
void stateEntryAndExit();
void assignProperty();
void assignPropertyWithAnimation();
@@ -1107,9 +1109,9 @@ void tst_QStateMachine::machineWithParent()
QCOMPARE(machine->parentState(), static_cast<QState*>(0));
}
+#ifdef QT_BUILD_INTERNAL
void tst_QStateMachine::addAndRemoveState()
{
-#ifdef QT_BUILD_INTERNAL
QStateMachine machine;
QStatePrivate *root_d = QStatePrivate::get(&machine);
QCOMPARE(root_d->childStates().size(), 0);
@@ -1170,8 +1172,8 @@ void tst_QStateMachine::addAndRemoveState()
delete s2;
// ### how to deal with this?
// machine.removeState(machine.errorState());
-#endif
}
+#endif
void tst_QStateMachine::stateEntryAndExit()
{