summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsound
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2009-10-06 06:00:48 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2009-10-06 06:01:51 (GMT)
commit2a18238357e3442a2e9a6eb2fe8b9ff78704c174 (patch)
tree04f99de883289db0660d9f089c9ef489a7f5018d /tests/auto/qsound
parent0a90113262eab4e05bf73c0b69b1f5633a10e768 (diff)
downloadQt-2a18238357e3442a2e9a6eb2fe8b9ff78704c174.zip
Qt-2a18238357e3442a2e9a6eb2fe8b9ff78704c174.tar.gz
Qt-2a18238357e3442a2e9a6eb2fe8b9ff78704c174.tar.bz2
Fix auto test for QSound; find test wav file.
Reviewed-by: Bill King
Diffstat (limited to 'tests/auto/qsound')
-rw-r--r--tests/auto/qsound/qsound.pro6
-rw-r--r--tests/auto/qsound/tst_qsound.cpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/qsound/qsound.pro b/tests/auto/qsound/qsound.pro
index 75da2e6..c48d50d 100644
--- a/tests/auto/qsound/qsound.pro
+++ b/tests/auto/qsound/qsound.pro
@@ -4,4 +4,8 @@ SOURCES += tst_qsound.cpp
wince*|symbian*: {
deploy.sources += 4.wav
DEPLOYMENT = deploy
-} \ No newline at end of file
+ DEFINES += SRCDIR=\\\"\\\"
+} else {
+ DEFINES += SRCDIR=\\\"$$PWD/\\\"
+}
+
diff --git a/tests/auto/qsound/tst_qsound.cpp b/tests/auto/qsound/tst_qsound.cpp
index 76451e3..dd5f2ce 100644
--- a/tests/auto/qsound/tst_qsound.cpp
+++ b/tests/auto/qsound/tst_qsound.cpp
@@ -56,7 +56,7 @@ private slots:
void tst_QSound::checkFinished()
{
- QSound sound("4.wav");
+ QSound sound(SRCDIR"4.wav");
sound.setLoops(3);
sound.play();
QTest::qWait(5000);