<div dir="ltr"><div><div><div><div><div><div>Hello devs,<br><br></div>I am currently facing a minor issue when writing tests, which I'm not able to overcome.<br></div>I've written my test cases using the DEFINE_TESTCASE macro and there are no errors while running a make check.<br></div>But when I run a make check, it shows me these warnings:<br><br>In file included from apitest.h:26:0,<br>                 from api_cluster.cc:7:<br>api_cluster.cc: In function ‘bool test_euclidian_distance1()’:<br>./harness/testsuite.h:285:38: warning: no previous declaration for ‘bool test_euclidian_distance1()’ [-Wmissing-declarations]<br> #define DEFINE_TESTCASE(S,COND) bool test_##S()<br>                                      ^<br>api_cluster.cc:16:1: note: in expansion of macro ‘DEFINE_TESTCASE’<br> DEFINE_TESTCASE(euclidian_distance1, backend) {<br> ^<br>api_cluster.cc: In function ‘bool test_euclidian_distance2()’:<br>./harness/testsuite.h:285:38: warning: no previous declaration for ‘bool test_euclidian_distance2()’ [-Wmissing-declarations]<br> #define DEFINE_TESTCASE(S,COND) bool test_##S()<br>                                      ^<br>api_cluster.cc:43:1: note: in expansion of macro ‘DEFINE_TESTCASE’<br> DEFINE_TESTCASE(euclidian_distance2, backend) {<br> ^<br>api_cluster.cc: In function ‘bool test_round_robin1()’:<br>./harness/testsuite.h:285:38: warning: no previous declaration for ‘bool test_round_robin1()’ [-Wmissing-declarations]<br> #define DEFINE_TESTCASE(S,COND) bool test_##S()<br>                                      ^<br>api_cluster.cc:69:1: note: in expansion of macro ‘DEFINE_TESTCASE’<br> DEFINE_TESTCASE(round_robin1, backend)<br> ^<br><br></div>If I'm not wrong, the collate-test perl script specified in <a href="http://makefile.am">makefile.am</a> 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.<br></div>Could I know how to get around this?<br><br></div>Thanks<br></div>