diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-05-22 14:50:03 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-05-22 14:50:03 (GMT) |
commit | 5ae1ccd2b12fcbc55fa2d14c39d8da3f4440a11d (patch) | |
tree | 55e62dfe0d1b30d9dfaee122c4d6f0150a2992dd /tests/auto/qstatemachine | |
parent | d19ed9d337b79a3dc88690db66a8ea8d4482cddd (diff) | |
download | Qt-5ae1ccd2b12fcbc55fa2d14c39d8da3f4440a11d.zip Qt-5ae1ccd2b12fcbc55fa2d14c39d8da3f4440a11d.tar.gz Qt-5ae1ccd2b12fcbc55fa2d14c39d8da3f4440a11d.tar.bz2 |
test what happens when changing to an invalid signal while state is active
Diffstat (limited to 'tests/auto/qstatemachine')
-rw-r--r-- | tests/auto/qstatemachine/tst_qstatemachine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qstatemachine/tst_qstatemachine.cpp b/tests/auto/qstatemachine/tst_qstatemachine.cpp index c01d077..76c5de1 100644 --- a/tests/auto/qstatemachine/tst_qstatemachine.cpp +++ b/tests/auto/qstatemachine/tst_qstatemachine.cpp @@ -1704,6 +1704,12 @@ void tst_QStateMachine::signalTransitions() trans->setSenderObject(&emitter2); emitter2.emitSignalWithNoArg(); QTRY_COMPARE(finishedSpy.count(), 4); + + machine.start(); + QCoreApplication::processEvents(); + QTest::ignoreMessage(QtWarningMsg, "QSignalTransition: no such signal: SignalEmitter::noSuchSignal()"); + trans->setSignal(SIGNAL(noSuchSignal())); + QCOMPARE(trans->signal(), QByteArray(SIGNAL(noSuchSignal()))); } { QStateMachine machine; |