<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size="+0"></FONT></DIV>
<DIV><FONT style="FONT-SIZE: 16px" size="+0">Hi,</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="+0"> I found that sometimes the unit tests for bind10 source code couldn't pass. I found this in output:</FONT></DIV><FONT style="FONT-SIZE: 16px" color="#0000ff"><SPAN style="FONT-SIZE: 13px">===================================</SPAN><BR><SPAN style="FONT-SIZE: 13px">1 of 1 test failed</SPAN><BR><SPAN style="FONT-SIZE: 13px">Please report to </SPAN></FONT><A style="FONT-SIZE: 13px" href="mailto:bind10-dev@isc.org"><FONT color="#0000ff">bind10-dev@isc.org</FONT></A><BR><FONT style="FONT-SIZE: 16px" color="#0000ff"><SPAN style="FONT-SIZE: 13px">===================================</SPAN><BR></FONT>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="+0"> I'm not sure if I should report it here because I think the reason may be that I've used wrong version of gtest. </FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="+0"> version of bind is : <FONT color="#000000">bind10-devel-20101201 ( the same results for bind10-devel-20100917 and source code in trunk directory on svn server )</FONT></FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="+0"> version of gtest is: gtest 1.5.0 ( the same results for gtest 1.3.0 )</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="+0">Detail information as follows:</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="+0"> When I ran 'make coverage':</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 13px" size="+0">...</FONT></DIV>
<DIV style="FONT-SIZE: 13px"><FONT color="#0000ff">mydir/bind10-devel-20101201/src/lib/dns/tests/.libs/lt-run_unittests: symbol lookup error: mydir/bind10-devel-20101201/src/lib/dns/tests/.libs/lt-run_unittests: undefined symbol: _ZN3isc3dns5rdata3any4TSIGD1Ev<BR>FAIL: run_unittests<BR>===================================<BR>1 of 1 test failed<BR>Please report to </FONT><A href="mailto:bind10-dev@isc.org"><FONT color="#0000ff">bind10-dev@isc.org</FONT></A><BR><FONT color="#0000ff">===================================<BR>make[7]: *** [check-TESTS] Error 1</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT color="#0000ff"><FONT style="FONT-SIZE: 13px" color="#000000">...</FONT></FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT color="#0000ff"><FONT color="#000000"> I've replaced the real directory path name with 'mydir'</FONT></FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT color="#000000"> Something I found:</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT color="#0000ff"><FONT style="FONT-SIZE: 16px" size="+0"><FONT color="#000000"> 1</FONT></FONT></FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="3"> Nothing unusual happened during 'configure' and 'make'</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="3"> 2</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT color="#0000ff"><FONT style="FONT-SIZE: 16px" size="+0"><FONT color="#000000"> Rule 'coverage' in Makefile:</FONT><SPAN style="FONT-SIZE: 13px">coverage: clean-coverage perform-coverage report-coverage</SPAN></FONT></FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT color="#000000"> The error info. is part of the output of 'make perform-coverage'</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="+0"> Seperately running 'make clean-coverage' and 'make report-coverage' generates no error info.</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT color="#000000"> 3</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT color="#000000"> I found 7 different directory in the output of 'grep "#include <gtest/gtest.h>" * -R':</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 13px" color="#0000ff">src/lib/exceptions/tests/</FONT></DIV>
<DIV style="FONT-SIZE: 13px"><FONT color="#0000ff">src/lib/cc/tests/</FONT></DIV>
<DIV style="FONT-SIZE: 13px"><FONT color="#ff0000">src/lib/dns/tests</FONT></DIV>
<DIV style="FONT-SIZE: 13px"><FONT color="#0000ff">src/lib/config/tests/</FONT></DIV>
<DIV style="FONT-SIZE: 13px"><FONT color="#0000ff">src/lib/bench/tests/</FONT></DIV>
<DIV style="FONT-SIZE: 13px"><FONT color="#0000ff">src/lib/datasrc/tests/</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 13px" color="#0000ff">src/bin/auth/tests</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="+0"> I ran './run_unittests' in each directory and found no error info. except in directory 'src/lib/dns/tests'. The content is the same as above.</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="+0"> 4</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="+0"> I ran 'make report-coverage' and got a webpage similar with the one on isc.org website:</FONT></DIV>
<DIV style="FONT-SIZE: 16px"> <A href="http://bind10.isc.org/~tester/LATEST_UNITTEST_COVERAGE/"><FONT style="FONT-SIZE: 16px" size="+0">http://bind10.isc.org/~tester/LATEST_UNITTEST_COVERAGE/</FONT></A></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="+0"> I think it's an evidence that LCOV works well.</FONT></DIV>
<DIV style="FONT-SIZE: 16px"> </DIV>
<DIV style="FONT-SIZE: 16px"><FONT color="#000000"> How to solve it? Any suggestion? Thanks a lot.</FONT></DIV>
<DIV style="FONT-SIZE: 16px"><FONT style="FONT-SIZE: 16px" size="+0"> Mary</FONT></DIV>
<DIV><FONT style="FONT-SIZE: 16px" size="+0"> 2010-12-16</FONT></DIV><BR><BR><BR><SPAN title="neteasefooter"><SPAN id="netease_mail_footer"></SPAN></SPAN><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>