From 0a06a07fa4fa933a74b312aac918a6fdc276f2df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Novomesk=C3=BD?= Date: Tue, 4 Feb 2025 11:07:07 +0100 Subject: [PATCH] Print more details when writetest fails --- autotests/writetest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autotests/writetest.cpp b/autotests/writetest.cpp index 03f576c..ab2db9d 100644 --- a/autotests/writetest.cpp +++ b/autotests/writetest.cpp @@ -403,7 +403,8 @@ int formatTest(const QString &suffix, bool createTemplates) // checking the format: must be the same if (writtenImage.format() != tmplImage.format()) { ++failed; - QTextStream(stdout) << "FAIL : format mismatch " << formatName << "\n"; + auto tmplformatName = QString(QMetaEnum::fromType().valueToKey(tmplImage.format())); + QTextStream(stdout) << "FAIL : format mismatch " << formatName << " != " << tmplformatName << "\n"; continue; }