summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel/qsound/tst_qsound.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-10-25 11:28:47 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-27 09:50:30 +0200
commit0c3d898a03b675c942e5c8a798b54676d3edf3ae (patch)
tree3e9ea3d434f80fc6bc43c9249c53a7d8b12cc180 /tests/auto/widgets/kernel/qsound/tst_qsound.cpp
parent3849455ee791d6f5cd4b87253732827d40e5d28a (diff)
Tests: Remove Q_WS_QPA, qpa-sections from .profiles.
Compile without -qpa. - Make Q_WS_QPA-#ifdefed sections the default in the code - Replace some Q_WS_ by Q_OS_ - Add ### fixme for places that need checking - Remove qpa conditionals from .pro files. Change-Id: I6ea930afc0c236cc12a7b7e95f1b8a1c24b3a513 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'tests/auto/widgets/kernel/qsound/tst_qsound.cpp')
-rw-r--r--tests/auto/widgets/kernel/qsound/tst_qsound.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/auto/widgets/kernel/qsound/tst_qsound.cpp b/tests/auto/widgets/kernel/qsound/tst_qsound.cpp
index 1b8907b1be..5f1e5fb47c 100644
--- a/tests/auto/widgets/kernel/qsound/tst_qsound.cpp
+++ b/tests/auto/widgets/kernel/qsound/tst_qsound.cpp
@@ -41,7 +41,7 @@
#include <QtTest/QtTest>
-#include <QtGui>
+#include <QtWidgets>
class tst_QSound : public QObject
{
@@ -59,9 +59,7 @@ private slots:
void tst_QSound::checkFinished()
{
-#if defined(Q_WS_QPA)
QSKIP("QSound is not implemented on Lighthouse");
-#else
QSound sound(SRCDIR"4.wav");
sound.setLoops(3);
sound.play();
@@ -71,17 +69,14 @@ void tst_QSound::checkFinished()
QEXPECT_FAIL("", "QSound buggy on embedded (task QTBUG-157)", Abort);
#endif
QVERIFY(sound.isFinished() );
-#endif
}
void tst_QSound::staticPlay()
{
QSKIP("Test disabled -- only for manual purposes");
-#if !defined(Q_WS_QPA)
// Check that you hear sound with static play also.
QSound::play(SRCDIR"4.wav");
QTest::qWait(2000);
-#endif
}
QTEST_MAIN(tst_QSound);