aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-04-19 07:40:17 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-04-19 11:11:36 +0200
commita91c048fd8423f361ff50e926e24e1fe69884563 (patch)
tree44a83eec4a3f0c2f446c8715c0b106bbbb7c2892 /sources/shiboken6/ApiExtractor/tests
parent9159ba17edad1aa49b07418a7a6793f4526dca86 (diff)
shiboken: Prepare for [[nodiscard]] QFile::open
Check the return value. Pick-to: 6.7 Change-Id: Iccbdbc033e25ee997c3d0904d8af0903c0dc319e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/tests')
-rw-r--r--sources/shiboken6/ApiExtractor/tests/testconversionruletag.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/tests/testconversionruletag.cpp b/sources/shiboken6/ApiExtractor/tests/testconversionruletag.cpp
index 731ce161c..b5efd92a6 100644
--- a/sources/shiboken6/ApiExtractor/tests/testconversionruletag.cpp
+++ b/sources/shiboken6/ApiExtractor/tests/testconversionruletag.cpp
@@ -23,7 +23,7 @@ void TestConversionRuleTag::testConversionRuleTagWithFile()
// temp file used later
constexpr auto conversionData = "Hi! I'm a conversion rule."_L1;
QTemporaryFile file;
- file.open();
+ QVERIFY(file.open());
QCOMPARE(file.write(conversionData.constData()), conversionData.size());
file.close();