[Xapian-tickets] [Xapian] #458: Xapian test suite failures on openbsd.
Xapian
nobody at xapian.org
Sun Mar 21 09:42:38 GMT 2010
#458: Xapian test suite failures on openbsd.
------------------------+---------------------------------------------------
Reporter: didickman | Owner: olly
Type: defect | Status: new
Priority: normal | Milestone:
Component: Test Suite | Version: 1.0.18
Severity: normal | Blockedby:
Platform: OpenBSD | Blocking:
------------------------+---------------------------------------------------
The Xapian regression suite fails on OpenBSD. First, the patch below is
needed. And after applying this patch the test suite still fails with the
output below the patch.
--- tests/api_none.cc.orig Sun Mar 21 05:32:04 2010
+++ tests/api_none.cc Sun Mar 21 05:32:23 2010
@@ -36,7 +36,7 @@ using namespace std;
// division by 0. Fixed in 1.1.4 and 1.0.18. Ticket#415.
DEFINE_TESTCASE(nosubdatabases1, !backend) {
Xapian::Database db;
- TEST_EQUAL(db.get_metadata("foo"), std::string());
+ TEST_EQUAL(db.get_metadata("foo"), new std::string());
TEST_EQUAL(db.metadata_keys_begin(), db.metadata_keys_end());
TEST_EXCEPTION(Xapian::DocNotFoundError, db.termlist_begin(1));
TEST_EQUAL(db.allterms_begin(), db.allterms_end());
make btreetest quartztest apitest internaltest stemtest
queryparsertest termgentest runtest
`btreetest' is up to date.
`quartztest' is up to date.
depbase=`echo api_none.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; c++
-DHAVE_CONFIG_H -I. -I.. -I../common -I../include -I../include
-I./harness -I../backends/quartz -Wall -W -Wredundant-decls -Wpointer-
arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-
keywords -Woverloaded-virtual -Wundef -O2 -pipe -MT api_none.o -MD -MP -MF
$depbase.Tpo -c -o api_none.o api_none.cc && mv -f $depbase.Tpo
$depbase.Po
api_none.cc: In function `bool test_nosubdatabases1()':
api_none.cc:39: error: no match for 'operator==' in '
Xapian::Database::get_metadata(const std::string&)
const((&string("foo",
(&allocator<char>())))) == (operator new(8), ((true,
(<anonymous>->std::basic_string<_CharT, _Traits, _Alloc>::basic_string
[with
_CharT = char, _Traits = std::char_traits<char>, _Alloc =
std::allocator<char>](), (<anonymous> <unknown operator> false))),
<anonymous>))'
harness/testutils.h:55: error: candidates are: bool operator==(const
Xapian::MSet&, const Xapian::MSet&)
*** Error code 1
--
Ticket URL: <http://trac.xapian.org/ticket/458>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list