Facing problems with tests

Richhiey Thomas <[email protected]>
Newsgroups gmane.comp.search.xapian.devel
Message-ID <CAPHaz=BuBG1okBXudREVEeW98JSi15Ny+hE3y5zG=N9vU-wygg@mail.gmail.com>
Hello devs,

I am currently facing a minor issue when writing tests, which I'm not able
to overcome.
I've written my test cases using the DEFINE_TESTCASE macro and there are no
errors while running a make check.
But when I run a make check, it shows me these warnings:

In file included from apitest.h:26:0,
                 from api_cluster.cc:7:
api_cluster.cc: In function ‘bool test_euclidian_distance1()’:
./harness/testsuite.h:285:38: warning: no previous declaration for ‘bool
test_euclidian_distance1()’ [-Wmissing-declarations]
 #define DEFINE_TESTCASE(S,COND) bool test_##S()
                                      ^
api_cluster.cc:16:1: note: in expansion of macro ‘DEFINE_TESTCASE’
 DEFINE_TESTCASE(euclidian_distance1, backend) {
 ^
api_cluster.cc: In function ‘bool test_euclidian_distance2()’:
./harness/testsuite.h:285:38: warning: no previous declaration for ‘bool
test_euclidian_distance2()’ [-Wmissing-declarations]
 #define DEFINE_TESTCASE(S,COND) bool test_##S()
                                      ^
api_cluster.cc:43:1: note: in expansion of macro ‘DEFINE_TESTCASE’
 DEFINE_TESTCASE(euclidian_distance2, backend) {
 ^
api_cluster.cc: In function ‘bool test_round_robin1()’:
./harness/testsuite.h:285:38: warning: no previous declaration for ‘bool
test_round_robin1()’ [-Wmissing-declarations]
 #define DEFINE_TESTCASE(S,COND) bool test_##S()
                                      ^
api_cluster.cc:69:1: note: in expansion of macro ‘DEFINE_TESTCASE’
 DEFINE_TESTCASE(round_robin1, backend)
 ^

If I'm not wrong, the collate-test perl script specified in makefile.am is
supposed to expand the macro and add it to the header file, api_all.h and
api_collated.h. But that doesn't seem to happen in my case.
Could I know how to get around this?

Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.