From 6c51d2aadf66c0ebeb66ae04e666359ee4b7423c Mon Sep 17 00:00:00 2001 From: Dmytro Poplavskiy Date: Tue, 7 Feb 2012 13:00:24 +1000 Subject: 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 --- tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp index ac44b6639..a09c4f316 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())); -- cgit v1.2.3