#177 closed defect (released)
spell3 is broken on windows
Reported by: | Richard Boulton | Owned by: | Olly Betts |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Test Suite | Version: | SVN trunk |
Severity: | normal | Keywords: | |
Cc: | Olly Betts, Charlie Hull | Blocked By: | |
Blocking: | Operating System: | All |
Description
Spell3 is now skipped on windows because it tries to create two writable databases simultaneously at the same path, deleting but not closing the first before creating the second. The delete fails on windows due to the differing file semantics. However, the test shouldn't be trying to do this anyway. I've just added the following explanatory comment to the testcase code, reproduced here in case it gets separated from the source code in future:
FIXME: the following two lines create two writable databases, but at the same path. The first database is deleted, but kept open, before the second is opened. This isn't really supported behaviour (in Olly's words: "it'll end in tears if it tries to flush"), and doesn't work on windows (hence the SKIP_TEST for WIN32 above) so we need to fix this. This probably involves making the backendmanager support a "name" parameter for get_writable_database() which specifies the path to create the database at. This would also make it easier to get a readonly handle on a previously created writable database.
Change History (13)
comment:1 by , 17 years ago
Blocking: | 120 added |
---|
comment:2 by , 17 years ago
Owner: | changed from | to
---|
comment:3 by , 17 years ago
Status: | new → assigned |
---|
comment:4 by , 17 years ago
Cc: | added |
---|
comment:5 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
comment:6 by , 17 years ago
Blocking: | 200 added; 120 removed |
---|---|
Status: | new → assigned |
Marking for 1.0.5.
comment:7 by , 17 years ago
Should now be fixed, but I can't test currently as the win32 buildbots aren't available currently.
comment:8 by , 17 years ago
Cc: | added |
---|
The windows buildbot doesn't seem to be working still, so Cc-ing Charlie.
Charlie: Does "apitest spell3" work on MS Windows with recent SVN HEAD?
comment:9 by , 17 years ago
No, it gives the following error:
Running test: spell3....flint\dbw\flintlock - The process cannot access the file
because it is being used by another process.
.flint\dbw\postlist.DB - The process cannot access the file because it is being used by another process. .flint\dbw\record.DB - The process cannot access the file because it is being us ed by another process. .flint\dbw\termlist.DB - The process cannot access the file because it is being used by another process.
apitest completed test run: 0 tests passed, 1 failed.
In fact (partly due to the new test harness) there are around 40 test failures on SVN_HEAD at the moment, I'm going to take a look soon.
comment:10 by , 17 years ago
Summary: | spell3 is skipped on windows → spell3 is broken on windows |
---|
OK, stupid mistake - spell3 should work now.
I don't know about the rest...
comment:11 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Yep, spell3 works now. Still looking at the others.
comment:12 by , 17 years ago
Resolution: | fixed → released |
---|
comment:13 by , 17 years ago
Blocking: | 200 removed |
---|---|
Operating System: | → All |
I've overhauled BackendManager, so this should now be fairly easy to sort out.