From a24ece396adce0a0f035fef87f71cd86450c036f Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 31 Mar 2019 20:58:26 +0200 Subject: [PATCH] autotests: Also exercise canRead --- autotests/readtest.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autotests/readtest.cpp b/autotests/readtest.cpp index 3743068..bbda287 100644 --- a/autotests/readtest.cpp +++ b/autotests/readtest.cpp @@ -148,6 +148,14 @@ int main(int argc, char ** argv) ++failed; continue; } + if (!inputReader.canRead()) { + QTextStream(stdout) << "FAIL : " << fi.fileName() + << ": failed can read: " + << inputReader.errorString() + << "\n"; + ++failed; + continue; + } if (!inputReader.read(&inputImage)) { QTextStream(stdout) << "FAIL : " << fi.fileName() << ": failed to load: "