svn commit: samba r2744 - in branches/SAMBA_4_0: . source/include
source/lib source/torture/local
tridge at samba.org
tridge at samba.org
Wed Sep 29 06:31:14 GMT 2004
Author: tridge
Date: 2004-09-29 06:31:14 +0000 (Wed, 29 Sep 2004)
New Revision: 2744
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0&rev=2744&nolog=1
Log:
ben elliston taught me about gcov today, which allows you to measure
the % coverage in terms of lines of code of a test suite. I thought a
good first place to start with gcov was the talloc test suite. When I
started the test suite covered about 60% of all lines of code in
talloc.c, and now it covers about 99%. The only lines not covered are
talloc corruption errors, as that would cause smb_panic() to fire.
It will be interesting to try gcov on the main Samba test suite for
smbd. We won't achieve 100% coverage, but it would be nice to get to
90% or more.
I also modified the talloc.c sources to be able to be build standalone, using:
gcc -c -D_STANDALONE_ -Iinlcude lib/talloc.c
that should make it much easier to re-use talloc in other projects
Modified:
branches/SAMBA_4_0/source/include/includes.h
branches/SAMBA_4_0/source/include/talloc.h
branches/SAMBA_4_0/source/lib/talloc.c
branches/SAMBA_4_0/source/torture/local/talloc.c
branches/SAMBA_4_0/talloc_guide.txt
Changeset:
Sorry, the patch is too large (907 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0&rev=2744&nolog=1
More information about the samba-cvs
mailing list