qt5base-lts/tests/auto/corelib/io
David Faure 7b9f7f3891 QLockFile: on Windows, retry deleting the lock file if it is being read.
A "sharing violation" happens when trying to delete the lock file and another
thread/process is reading it at that very moment. Detect the error and try again,
up to 10000 times - to avoid an infinite loop if QFile::remove fails for another
reason such as a sudden change of permissions preventing us from deleting our
own lock file.

On Unix the deletion can't fail because of readers, but it doesn't hurt
to check the return value there too, to catch other reasons for failures
such as a sudden permission change.

Task-number: QTBUG-38853
Change-Id: Icf12a74faed4a4916e3427abc09d9c33aa141476
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-09-11 00:17:33 +02:00
..
largefile Remove #ifdef from outside test functions 2014-01-10 17:14:29 +01:00
qabstractfileengine Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qbuffer Make QBuffer::bytesAvailable() work 2013-04-16 19:45:11 +02:00
qdatastream Properly serialize QFont. 2014-03-31 17:45:47 +02:00
qdataurl tst_qdataurl: Remove QT_DISABLE_DEPRECATED_BEFORE=0 2013-04-12 07:19:45 +02:00
qdebug QDebug: Improve QDebug stream operator for QFlags 2014-07-30 16:27:33 +02:00
qdir tst_qdir: Move QFINDTESTDATA() from init() to constructor. 2014-07-09 10:59:42 +02:00
qdiriterator Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qfile Add QFileDevice::MemoryMapFlags::MapPrivateOption flag. 2014-07-23 07:20:40 +02:00
qfileinfo QSettings: use QSaveFile and QLockFile to write the settings 2014-07-24 18:50:40 +02:00
qfileselector QFileSelector: correct the macros for Apple platforms. 2014-02-04 19:36:58 +01:00
qfilesystementry Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qfilesystemwatcher Merge remote-tracking branch 'origin/stable' into dev 2014-06-05 22:26:44 +02:00
qiodevice Skip unstable autotests in QtBase. 2014-07-02 09:28:34 +02:00
qipaddress Make QIPAddress::parseIp6 return the first bad character 2013-07-20 05:08:08 +02:00
qlockfile QLockFile: on Windows, retry deleting the lock file if it is being read. 2014-09-11 00:17:33 +02:00
qloggingcategory Support setting a default severity level for QLoggingCategory 2014-07-23 15:38:10 +02:00
qloggingregistry Logging: Be also more strict with value of logging rule 2014-04-03 11:07:07 +02:00
qnodebug Remove trailing space from QDebug stream 2013-12-06 13:33:10 +01:00
qprocess Merge remote-tracking branch 'origin/5.3' into dev 2014-07-01 16:25:19 +02:00
qprocess-noapplication Expose QTest::currentAppName() and remove hard-coded argv[0] in tests 2013-09-26 18:45:16 +02:00
qprocessenvironment Fix remaining use of QTEST_NOOP_MAIN 2013-09-02 14:59:02 +02:00
qresourceengine Reduce repetitive invocations of QFINDTESTDATA. 2014-07-10 07:07:30 +02:00
qsavefile QSaveFile: error out in open when the file is a directory 2014-06-04 12:25:02 +02:00
qsettings WinRT: Fix QSettings auto-tests 2014-08-19 08:58:01 +02:00
qstandardpaths Add locations AppDataLocation, AppLocalDataLocation to QStandardPaths. 2014-04-29 12:28:16 +02:00
qstorageinfo Add the QStorageInfo class 2014-08-13 16:09:58 +02:00
qtemporarydir WinRT: Fix various test compilations 2013-10-02 12:36:05 +02:00
qtemporaryfile Reduce repetitive invocations of QFINDTESTDATA. 2014-07-10 07:07:30 +02:00
qtextstream Make QTextStream respect QLocale with OmitGroupSeparators 2014-07-24 01:57:32 +02:00
qurl QUrl: fromLocalFile(QString()) should lead to an empty URL. 2014-07-26 09:49:33 +02:00
qurlinternal Fix MSVC 64bit warnings about int64 truncation in tests. 2014-01-24 22:06:15 +01:00
qurlquery tests: Fix some more old references and links to Nokia 2013-02-01 15:27:37 +01:00
qwinoverlappedionotifier QWinOverlappedIoNotifier: Add an extended waitForAnyNotified() method 2014-05-21 02:15:10 +02:00
io.pro Add the QStorageInfo class 2014-08-13 16:09:58 +02:00