diff options
author | Jim Meyering <meyering@redhat.com> | 2012-09-17 11:34:44 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-09-18 08:51:34 +0200 |
commit | aef4fe8a5f7911ac63a9adc1c3e59ddfb4a99cd9 (patch) | |
tree | fe59bed16f452b91c2a192a45d118a72ff413a87 /top | |
parent | db75e39b38fb197b956f6866ad167bdf7121a660 (diff) | |
download | gnulib-aef4fe8a5f7911ac63a9adc1c3e59ddfb4a99cd9.tar.gz |
maint.mk: teach sc_prohibit_magic_number_exit to accept 77
* top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
uses like "exit (77)". "77" is automake's "skip this test" exit code.
It is not in the same category as "exit (0)" or "exit (1)", and
besides, I know of no symbolic name for that 77. Reported by
Richard W.M. Jones in
http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
Diffstat (limited to 'top')
-rw-r--r-- | top/maint.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/top/maint.mk b/top/maint.mk index 09f55c5097..9c660a14be 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -354,7 +354,7 @@ sc_prohibit_strncpy: # perl -pi -e 's/(^|[^.])\b(exit ?)\(0\)/$1$2(EXIT_SUCCESS)/' sc_prohibit_magic_number_exit: @prohibit='(^|[^.])\<(usage|exit|error) ?\(-?[0-9]+[,)]' \ - exclude='error ?\((0,|[^,]*)' \ + exclude='exit \(77\)|error ?\(((0|77),|[^,]*)' \ halt='use EXIT_* values rather than magic number' \ $(_sc_search_regexp) |