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>
This commit is contained in:
Dmytro Poplavskiy
2012-02-07 13:00:24 +10:00
committed by Qt by Nokia
parent 3c4dcf00bb
commit 6c51d2aadf

View File

@@ -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()));