Test: don't discard result of QFile::open
QVERIFY that the file could be opened, fail the test if it couldn't. Pick-to: 6.10 6.9 Change-Id: Iab9b819e70b71fade6a58286edff8e022748d9f6 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
3f0261ebe3
commit
33dc247b6a
@ -1995,7 +1995,7 @@ void tst_QFileInfo::brokenShortcut()
|
|||||||
QString linkName("borkenlink.lnk");
|
QString linkName("borkenlink.lnk");
|
||||||
QFile::remove(linkName);
|
QFile::remove(linkName);
|
||||||
QFile file(linkName);
|
QFile file(linkName);
|
||||||
file.open(QFile::WriteOnly);
|
QVERIFY(file.open(QFile::WriteOnly));
|
||||||
file.write("b0rk");
|
file.write("b0rk");
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user