#6533: xapian-core-1.2.21
-------------------------+-----------------------
Reporter: fo | Owner: fo
Type: enhancement | Status: assigned
Priority: normal | Milestone: 7.8
Component: BOOK | Version: SVN
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------
Comment (by fo):
I'm having a small problem with the tests and will ignore it, when
updating.
However, if somebody can give a clue or improve the page, perhaps it could
be good.
Problem is that 1 of 6 tests fails.
I ran some greps:
{{{
FAIL: apitest
PASS: internaltest
PASS: stemtest
PASS: queryparsertest
PASS: termgentest
PASS: unittest
=======================================
1 of 6 tests failed
Please report to http://xapian.org/bugs
=======================================
}}}
When inspected, only problem I found was
{{{
...
./apitest backend inmemory: All 226 tests passed, 8 skipped.
Running tests with backend "brass"...
...
Running test: deldoc4... Mismatched free() / delete / delete []
...
./apitest backend brass: 301 tests passed, 1 failed, 2 skipped.
...
./apitest total: 2992 tests passed, 1 failed, 45 skipped.
...
}}}
Therefore, it is not really 1 in 6, but 1 in more than 2992, which I
consider as negligible.
This mismatch has been related to bug in the code:
[http://cs.ecs.baylor.edu/~donahoo/tools/valgrind/messages.html]
{{{
In C++ it's important to deallocate memory in a way compatible with how
it was allocated. The deal is:
If allocated with malloc, calloc, realloc, valloc or memalign, you
must deallocate with free.
If allocated with new[], you must deallocate with delete[].
If allocated with new, you must deallocate with delete.
}}}
However, when run "by hand", I got:
{{{
(by memory)
xapian-core-1.2.21/tests ]$ ./apitest -b brass
Running tests with backend "brass"...
...
Running test: deldoc4... ok
...
./apitest backend brass: 302 tests passed, 0 failed, 2 skipped.
(/by memory)
and (copy/paste):
xapian-core-1.2.21/tests ]$ ./apitest -v -b brass deldoc4
Running tests with backend "brass"...
Running test: deldoc4... ok
./apitest backend brass: All 1 tests passed.
}}}
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/6533#comment:3>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page