Opened 17 years ago

Closed 17 years ago

#218 closed defect (duplicate)

Errors in apitest

Reported by: Charlie Hull Owned by: New Bugs
Priority: normal Milestone:
Component: Test Suite Version: SVN trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: Microsoft Windows

Description

Several errors here, not sure if this is one problem or several. All occur on each type of database.

Running test: qterminfo1... .\api_anydb.cc:1262: ((mymset1a.get_termfreq(term1)) == (mymset2a.get_termfreq(term1))) Expected mymset1a.get_termfreq(term1)' and mymset2a.get_termfreq(term1)' to be equal: were 1 and 3

Running test: collfreq1... .\api_db.cc:1082: ((db1.get_collection_freq("this")) == (15)) Expected db1.get_collection_freq("this")' and 15' to be equal: were 11 and 15

Running test: multidb2... .\api_anydb.cc:286: ((mymset1.size()) == (mymset2.size())) Expected mymset1.size()' and mymset2.size()' to be equal: were 2 and 3

Running test: rsetmultidb1... DocNotFoundErrorDocNotFoundError: REMOTE:No termlist for document 4

Running test: rsetmultidb2... DocNotFoundErrorDocNotFoundError: REMOTE:No termlist for document 4

Running test: multiexpand1... DocNotFoundErrorDocNotFoundError: REMOTE:No termlist found for document 7

Attachments (1)

xap.log (38.2 KB ) - added by Charlie Hull 17 years ago.
Apitest output after fixing #217

Download all attachments as: .zip

Change History (7)

comment:1 by Olly Betts, 17 years ago

All these tests open a database with two source files, so this would seem to be a duplicate of bug#217.

Except there you said an exception was thrown - did you patch around that or something?

comment:2 by Charlie Hull, 17 years ago

Status: newassigned

No I didn't; it would seem best to try and fix 217 first. I'll accept this one.

by Charlie Hull, 17 years ago

Attachment: xap.log added

Apitest output after fixing #217

comment:3 by Charlie Hull, 17 years ago

Status: assignednew

comment:4 by Richard Boulton, 17 years ago

The relation to #217 is that if only some of the source files get indexed, this would result in incomplete databases, and could lead to the kind of errors listed here. I suspect that your proposed fix to #217 doesn't actually fix it fully, somehow.

comment:5 by Olly Betts, 17 years ago

Try whatever the equivalent of this is, then rerun apitest:

cd tests rm -rf .flint .quartz .multi

comment:6 by Richard Boulton, 17 years ago

Operating System: Microsoft Windows
Resolution: duplicate
Status: newclosed

According to Charlie, Olly's suggestion combined with removing the old test databases fixes the problem.

This was essentially a duplicate of #217 - just symptoms of the problems with #217 failing to build the test databases correction. Resolving it as such.

* This bug has been marked as a duplicate of 217 *

Note: See TracTickets for help on using tickets.