summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2009-10-06 06:00:48 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-10-07 02:13:24 (GMT)
commitad446f355217368d55c0cc9c0e41e5e50025f4db (patch)
tree3a9286dd72089b04b65dc486e361a209c6183690
parent7efd966267ef49a3d8145362e8456713f7b71052 (diff)
downloadQt-ad446f355217368d55c0cc9c0e41e5e50025f4db.zip
Qt-ad446f355217368d55c0cc9c0e41e5e50025f4db.tar.gz
Qt-ad446f355217368d55c0cc9c0e41e5e50025f4db.tar.bz2
Fix auto test for QSound; find test wav file.
Reviewed-by: Bill King (cherry picked from commit 2a18238357e3442a2e9a6eb2fe8b9ff78704c174)
-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);