Tests: check result of QFile::open()


Silences numerous compiler warnings:

ignoring return value of function declared with 'nodiscard' attribute
[-Wunused-result]

QVERIFY the success of opening the file.

Pick-to: 6.12
Change-Id: I4e1fcaaed976d3479f536fe46fbd22dc8d82a7b2
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
commit05fcd5073f72cbc6a5e4d6673de9d62a20b4c4a4
parente5b2532eb479a8332fd208c7c1ce8277b24d84b4
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeMon, 6 Jul 2026 17:23:32 +0000