summaryrefslogtreecommitdiff
path: root/etc/compilation.txt
diff options
context:
space:
mode:
authorMasatake YAMATO <jet@gyve.org>2005-04-10 06:19:31 +0000
committerMasatake YAMATO <jet@gyve.org>2005-04-10 06:19:31 +0000
commit0c9a01ff2803e850b728c8601ae51b4141a26c43 (patch)
tree57400f895b715b3eadae6be84b97b7172130d99e /etc/compilation.txt
parent914725789124cc98bd45480abc2eca10a383454c (diff)
downloademacs-0c9a01ff2803e850b728c8601ae51b4141a26c43.tar.gz
* compilation.txt (symbol): Added gcov-file
gcov-bb-file gcov-never-called-line gcov-called-line . * progmodes/compile.el (compilation-error-regexp-alist-alist): Add regexp for gcov.
Diffstat (limited to 'etc/compilation.txt')
-rw-r--r--etc/compilation.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/etc/compilation.txt b/etc/compilation.txt
index c1a20ad3025..42e62af9dff 100644
--- a/etc/compilation.txt
+++ b/etc/compilation.txt
@@ -341,6 +341,32 @@ strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8)
bloofle defined( /users/wolfgang/foo.c(4) ), but never used
+* GCOV (test coverage program)
+
+symbol: gcov-file gcov-bb-file gcov-never-called-line gcov-called-line
+
+ -: 0:Source:foo.c
+ -: 0:Object:foo.bb
+ -: 1:/* $ gcc -fprofile-arcs -ftest-coverage foo.c
+ -: 2: $ ./a.out
+ -: 3: $ gcov foo.c
+ -: 4: LANG=C gcov foo.c
+ -: 5: 62.50% of 8 lines executed in file foo.c
+ -: 6: Creating foo.c.gcov.*/
+ -: 7:int
+ -: 8:main(int argc, char ** argv)
+ 1: 9:{
+ 1: 10: int r;
+ 1: 11: if (argc == 1)
+ 1: 12: r = 1;
+ #####: 13: else if (argc == 2)
+ #####: 14: r = 2;
+ -: 15: else
+ #####: 16: r = 0;
+ 1: 17: return r;
+ -: 18:}
+
+
* Directory tracking
Directories are matched via `compilation-directory-matcher'. Files which are