From: Stefano Lattarini Date: Sat, 11 Aug 2012 21:53:20 +0000 (+0200) Subject: [ng] tests: avoid spurious error with ctags from older Emacs and XEmacs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54afcd6bc2ec319999a43e67106c10d5523f6d3a;p=thirdparty%2Fautomake.git [ng] tests: avoid spurious error with ctags from older Emacs and XEmacs * t/ctags.sh: Here. Those ctags (from Emacs 22.3 and XEmacs 21.5) apparently have problems grasping "#define" in header files; feed them an inline function instead. Signed-off-by: Stefano Lattarini --- diff --git a/t/ctags.sh b/t/ctags.sh index f3f8a6a5d..bbbb22d05 100755 --- a/t/ctags.sh +++ b/t/ctags.sh @@ -44,7 +44,7 @@ test-ctags: ctags grep 'main' sub1/tags grep 'choke_me' sub1/tags && exit 1; : grep 'subsub/foo\.h' sub2/tags - grep 'DUMMY_DUMMY' sub2/tags + grep 'IsBigger' sub2/tags grep 'bar\.f77' sub2/subsub/tags grep 'foo\.cxx' sub2/subsub/tags grep 'foo\.h' sub2/subsub/tags && exit 1; : @@ -71,7 +71,9 @@ cat > sub2/Makefile.am << 'END' SUBDIRS = subsub . noinst_HEADERS = subsub/foo.h subsub/foo.h: - echo '#define DUMMY_DUMMY 0' >$@ + # Use and inlined function, not a #define, for the sake of + # Emacs an XEmacs ctags (at least up to versions 22 and 23). + echo 'inline int IsBigger (int a, int b) { return (a > b); }' >$@ CLEANFILES = $(noinst_HEADERS) END