http://bugs.winehq.org/show_bug.cgi?id=32777
Bug #: 32777 Summary: winmm:mci fails if the current directory is read-only Product: Wine Version: 1.5.19 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: winmm&mci AssignedTo: wine-bugs@winehq.org ReportedBy: fgouget@codeweavers.com Classification: Unclassified
The winmm:mci conformance test fails if the current directory is read-only. This typically happens if you run it from a read-only network share for instance.
z:\wine\dlls\winmm\tests> winmm_crosstest.exe mci mci.c:394: [MCI] with 5 drivers mci.c:765: Test failed: mci save returned MCIERR_FILE_NOT_SAVED mci.c:768: Test failed: mci save returned MCIERR_FILE_NOT_SAVED mci.c:773: Test failed: Save must not rename the original file; DeleteFile returned 5 mci.c:804: Tests skipped: Cannot open waveaudio!tempfile.wav for playing (MCIERR_FILE_NOT_FOUND), skipping mci.c:942: Tests skipped: Cannot open tempfile.wav for playing (MCIERR_FILE_NOT_FOUND), skipping mci.c:1171: Tests skipped: Cannot open tempfile.wav for auto-play, skipping mci: 194 tests executed (0 marked as todo, 3 failures), 3 skipped.
It should chdir() to a safe location, such as the temporary directory, before doing the tests that try to write to the current directory.