• Florian Will's avatar
    comdlg32/tests: Fix itemdlg tests on Windows. · 4e167e7e
    Florian Will authored
    The wine testbot runs tests with C:\Users\Public\Documents as the
    working directory. Itemdlg tests create test files in the working
    directory and then try to select them for opening in an IFileOpenDialog.
    The dialog has its SetFolder method called to point it to the current
    working directory before showing the dialog, in order for the test code
    to find the test files it had created there just before opening the
    dialog.
    
    On Windows, this failed because calling the dialog's SetFolder method
    with C:\Users\Public\Documents doesn't work as expected. The dialog
    points to the C:\Users\[CURRENT_USER]\Documents directory instead.
    Subsequently, the test would be unable to select the test file because
    it doesn't exist in that directory. So the dialog wouldn't accept the
    file and close itself to finish the test, but show an error message
    instead, resulting in a test timeout.
    
    To fix this, set the current working directory to the temporary
    directory before calling individual itemdlg test_* functions.
    4e167e7e
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...