"Francois" == Francois Gouget fgouget@free.fr writes:
Francois> I tested the 'file' regression test on NT4 and XP and it fails Francois> on both. Here is where the error occurs:
Francois> tests/file.c:236: Test failed: DeleteFile failed (5). Francois> tests/file.c:240: Test failed: couldn't create file Francois> "testfile.xxx" (err=5) tests/file.c:242: Test failed: _hwrite Francois> complains. [...]
Francois> 5 means 'permission denied'. DeleteFile fails just after Francois> _lcreat(filename,1) creates a read-only file:
Francois> H:\wine\wine\dlls\kernel>attrib testfile.xxx A R Francois> H:\wine\wine\dlls\kernel\testfile.xxx
Francois> Because that file is marked read-only, DeleteFile fails to Francois> delete it, then causing the failure of all the other tests. I Francois> checked and the same happens on non-smb drives (c:). I also Francois> checked that the exact same thing happens on Windows 98.
Francois> So the test needs to be fixed. Jakob, can you do this?
I sent a patch "Check sharing in DeleteFile"(2)/"Test for DeleteFile"(1) on May 9 which worked in that area. (2) should be applied after (1).
Bye