diff options
Diffstat (limited to 'tests/auto/corelib/serialization/qxmlstream/tst_qxmlstream.cpp')
-rw-r--r-- | tests/auto/corelib/serialization/qxmlstream/tst_qxmlstream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/corelib/serialization/qxmlstream/tst_qxmlstream.cpp b/tests/auto/corelib/serialization/qxmlstream/tst_qxmlstream.cpp index 3fa812193f..0b7d9ab0ed 100644 --- a/tests/auto/corelib/serialization/qxmlstream/tst_qxmlstream.cpp +++ b/tests/auto/corelib/serialization/qxmlstream/tst_qxmlstream.cpp @@ -1943,7 +1943,7 @@ void tst_QXmlStream::tokenErrorHandling() const if (!file.exists()) QSKIP(QObject::tr("Testfile %1 not found.").arg(fileName).toUtf8().constData()); - file.open(QIODevice::ReadOnly); + QVERIFY(file.open(QIODevice::ReadOnly)); QXmlStreamReader reader(&file); while (!reader.atEnd()) reader.readNext(); @@ -1960,7 +1960,7 @@ void tst_QXmlStream::checkStreamNotationDeclarations() const QFile file(dir.absoluteFilePath(fileName)); if (!file.exists()) QSKIP(QObject::tr("Testfile %1 not found.").arg(fileName).toUtf8().constData()); - file.open(QIODevice::ReadOnly); + QVERIFY(file.open(QIODevice::ReadOnly)); QXmlStreamReader reader(&file); while (!reader.atEnd()) reader.readNext(); @@ -1985,7 +1985,7 @@ void tst_QXmlStream::checkStreamEntityDeclarations() const QFile file(dir.absoluteFilePath(fileName)); if (!file.exists()) QSKIP(QObject::tr("Testfile %1 not found.").arg(fileName).toUtf8().constData()); - file.open(QIODevice::ReadOnly); + QVERIFY(file.open(QIODevice::ReadOnly)); QXmlStreamReader reader(&file); while (!reader.atEnd()) reader.readNext(); |