From 34cd8fd566cd61385db12112d9515b0d5388dad3 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Tue, 4 Sep 2012 12:40:16 +0200 Subject: 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 Reviewed-by: Thiago Macieira Reviewed-by: Caroline Chao --- tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/auto/corelib/statemachine') 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(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() { -- cgit v1.2.3