summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <[email protected]>2016-06-26 20:03:43 +0200
committerDaniel Vrátil <[email protected]>2016-06-26 20:03:43 +0200
commit0b3cb0d78416ced7c805c1d4c3e9ea8db61f6097 (patch)
treea4860da4a35ffdafd35923cd65486bf2d59e1713
parentc2ab61facc170a3a422a2bcbaa74938521df71bb (diff)
Don't put QFile.open() into Q_ASSERT
-rw-r--r--mimetreeparser/autotests/util.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mimetreeparser/autotests/util.cpp b/mimetreeparser/autotests/util.cpp
index cf7dcf0..5ea415b 100644
--- a/mimetreeparser/autotests/util.cpp
+++ b/mimetreeparser/autotests/util.cpp
@@ -23,7 +23,8 @@
KMime::Message::Ptr readAndParseMail(const QString &mailFile)
{
QFile file(QLatin1String(MAIL_DATA_DIR) + QLatin1Char('/') + mailFile);
- Q_ASSERT(file.open(QIODevice::ReadOnly));
+ file.open(QIODevice::ReadOnly);
+ Q_ASSERT(file.isOpen());
const QByteArray data = KMime::CRLFtoLF(file.readAll());
Q_ASSERT(!data.isEmpty());
KMime::Message::Ptr msg(new KMime::Message);