qt5base-lts/tests/auto
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
..
android Add missing license header 2013-03-05 08:31:23 +01:00
bic/data Make qaccessible2.h internal. 2013-03-14 19:49:38 +01:00
cmake Merge branch 'dev' into stable 2013-03-20 13:49:28 +01:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
corelib Ensure QTemporaryFile can create files when an identical dir exists. 2013-03-23 14:42:45 +01:00
dbus Fix wildcard signal disconnection in QDBusAbstractInterface 2013-03-19 07:03:25 +01:00
gui Merge remote-tracking branch 'gerrit/release' into stable 2013-03-21 08:49:01 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Merge remote-tracking branch 'gerrit/release' into stable 2013-03-21 08:49:01 +01:00
opengl Merge branch 'dev' into stable 2013-03-20 13:49:28 +01:00
other Do not update accessibility for invalid interfaces 2013-03-23 11:43:39 +01:00
printsupport Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
shared Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
sql Merge "Merge branch 'dev' into stable" into refs/staging/stable 2013-03-20 23:30:31 +01:00
testlib Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
tools Merge branch 'dev' into stable 2013-03-20 13:49:28 +01:00
widgets Merge remote-tracking branch 'gerrit/release' into stable 2013-03-21 08:49:01 +01:00
xml Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
auto.pro Check for printsupport module when building according auto tests 2013-02-19 19:20:58 +01:00
network-settings.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtest-config.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test.pl Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00