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:
committed by
Qt by Nokia
parent
3c4dcf00bb
commit
6c51d2aadf
@@ -116,6 +116,9 @@ void tst_QMediaPlayerBackend::init()
|
|||||||
void tst_QMediaPlayerBackend::initTestCase()
|
void tst_QMediaPlayerBackend::initTestCase()
|
||||||
{
|
{
|
||||||
QFileInfo wavFile(QLatin1String(TESTDATA_DIR "testdata/test.wav"));
|
QFileInfo wavFile(QLatin1String(TESTDATA_DIR "testdata/test.wav"));
|
||||||
|
if (!wavFile.exists())
|
||||||
|
wavFile = QFileInfo(QLatin1String("testdata/test.wav"));
|
||||||
|
|
||||||
QVERIFY(wavFile.exists());
|
QVERIFY(wavFile.exists());
|
||||||
|
|
||||||
localWavFile = QMediaContent(QUrl::fromLocalFile(wavFile.absoluteFilePath()));
|
localWavFile = QMediaContent(QUrl::fromLocalFile(wavFile.absoluteFilePath()));
|
||||||
|
|||||||
Reference in New Issue
Block a user