Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#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 Richard Boulton, 17 years ago

Blocking: 120 added

comment:2 by Richard Boulton, 17 years ago

Owner: changed from Olly Betts to Richard Boulton

comment:3 by Richard Boulton, 17 years ago

Status: newassigned

comment:4 by Olly Betts, 17 years ago

Cc: olly@… added

comment:5 by Olly Betts, 17 years ago

Owner: changed from Richard Boulton to Olly Betts
Status: assignednew

I've overhauled BackendManager, so this should now be fairly easy to sort out.

comment:6 by Olly Betts, 17 years ago

Blocking: 200 added; 120 removed
Status: newassigned

Marking for 1.0.5.

comment:7 by Olly Betts, 17 years ago

Should now be fixed, but I can't test currently as the win32 buildbots aren't available currently.

comment:8 by Olly Betts, 17 years ago

Cc: charlie@… 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 Charlie Hull, 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.

DatabaseOpeningError

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 Olly Betts, 17 years ago

Summary: spell3 is skipped on windowsspell3 is broken on windows

OK, stupid mistake - spell3 should work now.

I don't know about the rest...

comment:11 by Charlie Hull, 17 years ago

Resolution: fixed
Status: assignedclosed

Yep, spell3 works now. Still looking at the others.

comment:12 by Olly Betts, 17 years ago

Resolution: fixedreleased

comment:13 by Olly Betts, 17 years ago

Blocking: 200 removed
Operating System: All
Note: See TracTickets for help on using tickets.