qt5base-lts/tests/auto/corelib
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
..
animation Merge remote-tracking branch 'origin/stable' into dev 2013-01-22 18:40:13 +01:00
codecs Correctly detect HTML 5 charset attribute in QTextCodec::codecForHtml() 2013-02-12 01:31:26 +01:00
global Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
io Ensure QTemporaryFile can create files when an identical dir exists. 2013-03-23 14:42:45 +01:00
itemmodels Merge remote-tracking branch 'origin/stable' into dev 2013-03-05 13:42:11 +01:00
json Add toJson() formatting argument to QJsonDocument interface 2013-01-26 03:09:27 +01:00
kernel Support connection to functor with multiple operator() 2013-03-19 23:16:38 +01:00
mimetypes QMimeDatabase: pass MatchMode down, to fix MatchContent. 2013-03-01 13:05:11 +01:00
plugin Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
statemachine Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
thread Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
tools Merge remote-tracking branch 'gerrit/release' into stable 2013-03-21 08:49:01 +01:00
xml Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00