• Francois Gouget's avatar
    mscoree/tests: Avoid temporary directory name collisions. · c11e9234
    Francois Gouget authored
    test_loadpaths_execute() was sometimes getting ERROR_ALREADY_EXISTS when
    creating its temporary directoryi. That was probably because
    GetTempFileNameW() only uses the low 16-bits of the 'random' LUID which
    goes over a wider range, potentially leading to collisions in the lower
    16-bits.
    Avoid AllocateLocallyUniqueId() entirely and add a helper function to
    create a guaranteed new directory.
    Also try to use the current directory first as it is assumed to have
    been configured to ward off anti-virus programs (specifically
    Microsoft Defender) which is especially important when writing
    executables to that location. Only switch to the system's temporary
    directory if the current directory is not a writable location.
    
    Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54560
    c11e9234
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...