test-exclude: avoid coreutils "make check" failure
authorJim Meyering <meyering@redhat.com>
Fri, 14 Aug 2009 06:17:46 +0000 (08:17 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 14 Aug 2009 06:17:46 +0000 (08:17 +0200)
* tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
just as in test-argmatch.c.

ChangeLog
tests/test-exclude.c

index d6c3670e6e27cecb684792241c446182091864f4..ab455e1397d20245c411ad30da6f389db2358d15 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-08-14  Jim Meyering  <meyering@redhat.com>
+
+       test-exclude: avoid coreutils "make check" failure
+       * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
+       just as in test-argmatch.c.
+
 2009-08-13  Eric Blake  <ebb9@byu.net>
 
        test-dup2: fix bad assumption
index c220e0b35b64d84793862d3e5651ac622f681d52..a729bba3664b2fe9f613c1d78eb6af797b36d010 100644 (file)
@@ -60,6 +60,12 @@ int exclude_flags[] = {
 
 ARGMATCH_VERIFY (exclude_keywords, exclude_flags);
 
+/* Some packages define ARGMATCH_DIE and ARGMATCH_DIE_DECL in <config.h>, and
+   thus must link with a definition of that function.  Provide it here.  */
+#ifdef ARGMATCH_DIE_DECL
+ARGMATCH_DIE_DECL { exit (1); }
+#endif
+
 int
 main (int argc, char **argv)
 {