tst_QResourceManager: extend the test to cover open files
... when unregistering. Task-number: QTBUG-86088 Change-Id: I11112142ef1d8c4b269089a0a82ca06a5e434f7e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
parent
ecbe56825a
commit
6345929115
@ -540,6 +540,15 @@ void tst_QResourceEngine::checkUnregisterResource()
|
|||||||
QVERIFY(QFile::exists(file_check));
|
QVERIFY(QFile::exists(file_check));
|
||||||
QVERIFY(QResource::unregisterResource(rcc_file, root));
|
QVERIFY(QResource::unregisterResource(rcc_file, root));
|
||||||
QVERIFY(!QFile::exists(file_check));
|
QVERIFY(!QFile::exists(file_check));
|
||||||
|
{
|
||||||
|
// QTBUG-86088
|
||||||
|
QVERIFY(QResource::registerResource(rcc_file, root));
|
||||||
|
QFile file(file_check);
|
||||||
|
QVERIFY(file.open(QFile::ReadOnly));
|
||||||
|
QVERIFY(!QResource::unregisterResource(rcc_file, root));
|
||||||
|
file.close();
|
||||||
|
QVERIFY(!QFile::exists(file_check));
|
||||||
|
}
|
||||||
QVERIFY(QResource::registerResource(rcc_file, root));
|
QVERIFY(QResource::registerResource(rcc_file, root));
|
||||||
QVERIFY(QFile::exists(file_check));
|
QVERIFY(QFile::exists(file_check));
|
||||||
QFileInfo fileInfo(file_check);
|
QFileInfo fileInfo(file_check);
|
||||||
|
Loading…
Reference in New Issue
Block a user