qt5base-lts/tests/auto/corelib/io
Mitch Curtis a3304489e8 Ensure QTemporaryFile can create files when an identical dir exists.
When QTemporaryFile attempts to create a new file in
createFileFromTemplate, it fails if the filename exists and is a
directory. Windows returns error code 5 (ERROR_ACCESS_DENIED) in this
case - rather than ERROR_FILE_EXISTS - which is not handled.

This patch handles ERROR_ACCESS_DENIED in addition to the already
handled ERROR_FILE_EXISTS, meaning that QTemporaryFile will continue
to look for unique names when a directory with the same name exists.

Task-number: QTBUG-30058

Change-Id: I42339887d7f5483e3dc6a03a9da15111c350da8f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: David Faure <david.faure@kdab.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
2013-03-23 14:42:45 +01:00
..
largefile Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qabstractfileengine Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qbuffer Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qdatastream Fix warning about float truncation in tst_qdatastream. 2013-03-06 21:50:28 +01:00
qdataurl Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qdebug Merge remote-tracking branch 'origin/stable' into dev 2013-01-22 18:40:13 +01:00
qdir Fixed checking HOME variable return value using isEmpty() 2013-01-25 08:51:09 +01:00
qdiriterator Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qfile Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qfileinfo tst_qfileinfo: Fix invalid preprocessor directive. 2013-02-26 19:24:36 +01:00
qfilesystementry Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qfilesystemwatcher Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qiodevice Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qipaddress Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qlockfile tst_qlockfile: increase delay on Windows. 2013-03-19 06:29:13 +01:00
qnodebug Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qprocess Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qprocess-noapplication Re-revert "Delay creation of the process manager" 2012-10-15 04:52:08 +02:00
qprocessenvironment Check existence of QProcess feature before using it on Qt autotests. 2013-01-28 16:06:15 +01:00
qresourceengine Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qsavefile QSaveFile autotest: restore permissions using RAII 2013-01-17 17:39:22 +01:00
qsettings Fix QSettings autotest for VxWorks 2013-02-19 10:35:06 +01:00
qstandardpaths QStandardPaths: Use forward slash consistently. 2013-02-27 09:24:33 +01:00
qtemporarydir Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtemporaryfile Ensure QTemporaryFile can create files when an identical dir exists. 2013-03-23 14:42:45 +01:00
qtextstream Check existence of QProcess feature before using it on Qt autotests. 2013-01-28 16:06:15 +01:00
qurl QUrl: update top level domains that may contain non-ASCII characters 2013-03-02 10:13:27 +01:00
qurlinternal QUrl: update top level domains that may contain non-ASCII characters 2013-03-02 10:13:27 +01:00
qurlquery tests: Fix some more old references and links to Nokia 2013-02-01 15:27:37 +01:00
qwinoverlappedionotifier Fix MinGW-Warnings in tst_qwinoverlappedionotifier. 2013-01-28 16:19:21 +01:00
io.pro Long live QLockFile 2013-03-05 06:26:33 +01:00