• 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
..
tests Loading commit data...
Makefile.in Loading commit data...
cdlg.h Loading commit data...
cdlg32.c Loading commit data...
cdrom.ico Loading commit data...
colordlg.c Loading commit data...
comdlg32.rc Loading commit data...
comdlg32.spec Loading commit data...
comdlg32_classes.idl Loading commit data...
filedlg.c Loading commit data...
filedlg31.c Loading commit data...
filedlgbrowser.c Loading commit data...
filedlgbrowser.h Loading commit data...
finddlg.c Loading commit data...
floppy.ico Loading commit data...
folder.ico Loading commit data...
folder2.ico Loading commit data...
fontdlg.c Loading commit data...
fontpics.bmp Loading commit data...
hdisk.ico Loading commit data...
itemdlg.c Loading commit data...
network.ico Loading commit data...
pd32_collate.ico Loading commit data...
pd32_collate.svg Loading commit data...
pd32_landscape.ico Loading commit data...
pd32_landscape.svg Loading commit data...
pd32_nocollate.ico Loading commit data...
pd32_nocollate.svg Loading commit data...
pd32_portrait.ico Loading commit data...
pd32_portrait.svg Loading commit data...
printdlg.c Loading commit data...