diff options
Diffstat (limited to 'tests/auto/qaudiooutput')
-rw-r--r-- | tests/auto/qaudiooutput/qaudiooutput.pro | 8 | ||||
-rw-r--r-- | tests/auto/qaudiooutput/tst_qaudiooutput.cpp | 7 |
2 files changed, 10 insertions, 5 deletions
diff --git a/tests/auto/qaudiooutput/qaudiooutput.pro b/tests/auto/qaudiooutput/qaudiooutput.pro index 8657edb..a6286ec 100644 --- a/tests/auto/qaudiooutput/qaudiooutput.pro +++ b/tests/auto/qaudiooutput/qaudiooutput.pro @@ -4,11 +4,13 @@ SOURCES += tst_qaudiooutput.cpp QT = core multimedia -wince* { +wince*|symbian*: { deploy.sources += 4.wav DEPLOYMENT = deploy - DEFINES += SRCDIR=\\\"\\\" - QT += gui + !symbian { + DEFINES += SRCDIR=\\\"\\\" + QT += gui + } } else { DEFINES += SRCDIR=\\\"$$PWD/\\\" } diff --git a/tests/auto/qaudiooutput/tst_qaudiooutput.cpp b/tests/auto/qaudiooutput/tst_qaudiooutput.cpp index aeb2286..437ef5e 100644 --- a/tests/auto/qaudiooutput/tst_qaudiooutput.cpp +++ b/tests/auto/qaudiooutput/tst_qaudiooutput.cpp @@ -48,6 +48,9 @@ #include <qaudio.h> #include <qaudioformat.h> +#if defined(Q_OS_SYMBIAN) +#define SRCDIR "" +#endif class tst_QAudioOutput : public QObject { @@ -131,7 +134,7 @@ void tst_QAudioOutput::notifyInterval() void tst_QAudioOutput::pullFile() { if(available) { - QFile file(SRCDIR "4.wav"); + QFile file(SRCDIR"4.wav"); QVERIFY(file.exists()); file.open(QIODevice::ReadOnly); @@ -178,7 +181,7 @@ void tst_QAudioOutput::pullFile() void tst_QAudioOutput::pushFile() { if(available) { - QFile file(SRCDIR "4.wav"); + QFile file(SRCDIR"4.wav"); QVERIFY(file.exists()); file.open(QIODevice::ReadOnly); |