changeset 11826:278ae60991b9

test-exclude: avoid coreutils "make check" failure * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define, just as in test-argmatch.c.
author Jim Meyering <meyering@redhat.com>
date Fri, 14 Aug 2009 08:17:46 +0200
parents dcb923072f09
children d11c68bb2278
files ChangeLog tests/test-exclude.c
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/tests/test-exclude.c
+++ b/tests/test-exclude.c
@@ -60,6 +60,12 @@
 
 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)
 {