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.
http://bugs.winehq.org/show_bug.cgi?id=32777
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source
https://bugs.winehq.org/show_bug.cgi?id=32777
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase
--- Comment #1 from Austin English austinenglish@gmail.com --- Is this still an issue in current (1.7.35 or newer) wine? If so, please attach terminal output.
https://bugs.winehq.org/show_bug.cgi?id=32777
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from François Gouget fgouget@codeweavers.com --- This got fixed by the following commit:
commit d155df5c19bc5b4f8254b7d6f7e46e3f38ec472f Author: Francois Gouget fgouget@codeweavers.com Date: Mon Feb 24 23:56:50 2014 +0100
winmm/tests: Change the current directory to a place that will be writable.
https://bugs.winehq.org/show_bug.cgi?id=32777
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |d155df5c19bc5b4f8254b7d6f7e | |46e3f38ec472f
https://bugs.winehq.org/show_bug.cgi?id=32777
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.37.