Test: don't discard result of QFile::open
QVERIFY that the file could be opened, fail the test if it couldn't. Change-Id: Iab9b819e70b71fade6a58286edff8e022748d9f6 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> (cherry picked from commit 33dc247b6a553a5e4a6038189359d459d9019edf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit e9a941053ff84be7d1fcfb86043d26633883d9f7)
This commit is contained in:
parent
3b854dc8d5
commit
7097e3c690
@ -1890,7 +1890,7 @@ void tst_QFileInfo::brokenShortcut()
|
||||
QString linkName("borkenlink.lnk");
|
||||
QFile::remove(linkName);
|
||||
QFile file(linkName);
|
||||
file.open(QFile::WriteOnly);
|
||||
QVERIFY(file.open(QFile::WriteOnly));
|
||||
file.write("b0rk");
|
||||
file.close();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user