diff options
Diffstat (limited to 'tests/auto/xml/sax/qxml/tst_qxml.cpp')
-rw-r--r-- | tests/auto/xml/sax/qxml/tst_qxml.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/xml/sax/qxml/tst_qxml.cpp b/tests/auto/xml/sax/qxml/tst_qxml.cpp index afe219c635..14f4e554aa 100644 --- a/tests/auto/xml/sax/qxml/tst_qxml.cpp +++ b/tests/auto/xml/sax/qxml/tst_qxml.cpp @@ -196,7 +196,10 @@ void tst_QXml::interpretedAs0D() const QChar(0x010D) + QLatin1String("reated-by=\"an attr value\"/>")); - QFile f("0x010D.xml"); + QString testFile = QFINDTESTDATA("0x010D.xml"); + if (testFile.isEmpty()) + QFAIL("Cannot find test file 0x010D.xml!"); + QFile f(testFile); QVERIFY(f.open(QIODevice::ReadOnly)); QXmlInputSource data(&f); |