http://defect.opensolaris.org/bz/show_bug.cgi?id=19223
Summary: SearchEngineTest.testSearch fails
Classification: Development
Product: opengrok
Version: unspecified
Platform: ANY/Generic
OS/Version: All
Status: NEW
Severity: major
Priority: P3
Component: tests
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Recent jenkins build revealed this test case failure:
Error Message
expected:<8> but was:<7>
Stacktrace
junit.framework.AssertionFailedError: expected:<8> but was:<7>
at
org.opensolaris.opengrok.search.SearchEngineTest.testSearch(SearchEngineTest.java:176)
This corresponds to this piece of code in
test/org/opensolaris/opengrok/search/SearchEngineTest.java:
172 instance = new SearchEngine();
173 instance.setSymbol("printf");
174 instance.setFile("main.c");
175 noHits = instance.search();
176 assertEquals(8, noHits);
Looking under testdata directory there are indeed 7 files named main.c:
$ find /var/opengrok/src/opengrok-dev/testdata/ -type f -name main.c
/var/opengrok/src/opengrok-dev/testdata/sources/c/main.c
/var/opengrok/src/opengrok-dev/testdata/repositories/bazaar/main.c
/var/opengrok/src/opengrok-dev/testdata/repositories/git/main.c
/var/opengrok/src/opengrok-dev/testdata/repositories/mercurial/main.c
/var/opengrok/src/opengrok-dev/testdata/repositories/teamware/main.c
/var/opengrok/src/opengrok-dev/testdata/repositories/cvs/cvsrepo/main.c
/var/opengrok/src/opengrok-dev/testdata/repositories/rcs/main.c
The value was bumped from 7 to 8 with the addition of Razor repository support
with:
736:b7008f56813e 10-Feb-2009 Knut Anders Hatlen
<[email protected]> Wire the sample Razor repository into the tests
However, the main.c file of the Razor repository is present outside of
'testdata' directory (in ext/SampleRazorRepository/UserSandbox/SimpleCProgram/)
which is to my understanding used for the test.
It is not entirely clear why the test case was not failing before.
It looks like a test Razor repository containing main.c with call to printf()
should be added under testdata directory.
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev