The test script itself has the test.db open, and as result Windows cannot delete an open file. It worked on UNIX because you can delete anything at any time whether it is open, running, locked or whatever.
If you apply this patch, exclusive2.test will run to completion on cygwin without error. It ought to work on MinGW as well. Index: test/exclusive2.test =================================================================== RCS file: /sqlite/sqlite/test/exclusive2.test,v retrieving revision 1.4 diff -u -3 -p -r1.4 exclusive2.test --- test/exclusive2.test 16 Apr 2007 15:02:20 -0000 1.4 +++ test/exclusive2.test 25 Apr 2007 02:42:56 -0000 @@ -161,6 +161,7 @@ do_test exclusive2-2.4 { seek $fd 1024 puts -nonewline $fd [string repeat [binary format c 0] 10000] flush $fd + close $fd t1sig } $::sig --- Dennis Cote <[EMAIL PROTECTED]> wrote: > I'm getting a strange failure of the test suite on Windows (XP all > updates). The exclusive2 test is getting a permission denied error when > deleting a file. I can manually delete the file and the tclsh can > execute the same file delete command if I enter it manually. > > $ ./testfixture.exe ../sqlite/test/exclusive2.test > exclusive2-1.0... Ok > exclusive2-1.1... Ok > exclusive2-1.2... Ok > exclusive2-1.3... Ok > exclusive2-1.4... Ok > exclusive2-1.5... Ok > exclusive2-1.6... Ok > exclusive2-1.7... Ok > exclusive2-1.9... Ok > exclusive2-1.10... Ok > exclusive2-1.11... Ok > exclusive2-2.1... Ok > exclusive2-2.2... Ok > exclusive2-2.3... Ok > exclusive2-2.4... Ok > exclusive2-2.5... Ok > exclusive2-2.6... Ok > exclusive2-2.7... Ok > exclusive2-2.8... Ok > c:\SQLite\SQLiteV3\build\testfixture.exe: error deleting "test.db": > permission denied > while executing > "file delete -force test.db" > (file "../sqlite/test/exclusive2.test" line 192) > > $ ls test.db > test.db > > $ tclsh > file delete -force test.db > exit > > $ ls test.db > ls: test.db: No such file or directory > > I'm building SQLite and running these tests using MinGW/MSYS. I haven't > had any problems before, but I haven't built sqlite from source since > around version 3.3.12. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------