summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2012-02-07 13:00:24 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-07 04:12:55 +0100
commit6c51d2aadf66c0ebeb66ae04e666359ee4b7423c (patch)
tree2998a0f1385779f4b2a58d85260d28bb7b454b28
parent3c4dcf00bb9922ed83f1defcd52092857da5103e (diff)
tst_qmediaplayerbackend: try to load test file from the current dir.
This makes testing easier on other system than test was build. Change-Id: I75c4d620c8132a7fd298fe735dfdc1bf6f775e08 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
-rw-r--r--tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
index ac44b663..a09c4f31 100644
--- a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
+++ b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
@@ -116,6 +116,9 @@ void tst_QMediaPlayerBackend::init()
void tst_QMediaPlayerBackend::initTestCase()
{
QFileInfo wavFile(QLatin1String(TESTDATA_DIR "testdata/test.wav"));
+ if (!wavFile.exists())
+ wavFile = QFileInfo(QLatin1String("testdata/test.wav"));
+
QVERIFY(wavFile.exists());
localWavFile = QMediaContent(QUrl::fromLocalFile(wavFile.absoluteFilePath()));