[Nepomuk] broken unittests

David Faure faure at kde.org
Fri Aug 3 12:26:41 UTC 2012


All of the kdelibs unittest pass in 4.9 ... except for the nepomuk ones.

The following tests FAILED:
          1 - nepomuk-queryparsertest (Failed)
          2 - nepomuk-querytest (Failed)
          4 - nepomuk-resourcetest (Failed)
          6 - nepomuk-dynamicresourcefacettest (Failed)

The first failure is:

FAIL!  : QueryParserTest::testQueryParser(simple field query) Compared values 
are not the same
   Actual (q): <?xml version="1.0"?><query limit="0" offset="0" 
fullTextScoring="false" fullTextScoringOrder="desc" flags=""><or><comparison 
property="http://www.semanticdesktop.org/ontologies/2007/11/01/pimo#hasTag" 
comparator=":" inverted="false"><literal 
datatype="http://www.w3.org/2001/XMLSchema#string">nepomuk</literal></comparison><comparison 
property="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag" 
comparator=":" inverted="false"><literal 
datatype="http://www.w3.org/2001/XMLSchema#string">nepomuk</literal></comparison></or></query>

   Expected (query): <?xml version="1.0"?><query limit="0" offset="0" 
fullTextScoring="false" fullTextScoringOrder="desc" flags=""><or><comparison 
property="onto:/hasTag" comparator=":" inverted="false"><literal 
datatype="http://www.w3.org/2001/XMLSchema#string">nepomuk</literal></comparison><comparison 
property="onto:/tag" comparator=":" inverted="false"><literal 
datatype="http://www.w3.org/2001/XMLSchema#string">nepomuk</
   Loc: [/d/kde/src/4/kdelibs/nepomuk/test/queryparsertest.cpp(153)]

These two queries look *quite* different indeed. What happened?

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5



More information about the Nepomuk mailing list