From: Jim Meyering Date: Fri, 14 Aug 2009 06:17:46 +0000 (+0200) Subject: test-exclude: avoid coreutils "make check" failure X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce795c70947ffc1a52a02394d9aa03b81eb3b2b4;p=pspp test-exclude: avoid coreutils "make check" failure * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define, just as in test-argmatch.c. --- diff --git a/ChangeLog b/ChangeLog index d6c3670e6e..ab455e1397 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-08-14 Jim Meyering + + 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 test-dup2: fix bad assumption diff --git a/tests/test-exclude.c b/tests/test-exclude.c index c220e0b35b..a729bba366 100644 --- a/tests/test-exclude.c +++ b/tests/test-exclude.c @@ -60,6 +60,12 @@ int exclude_flags[] = { ARGMATCH_VERIFY (exclude_keywords, exclude_flags); +/* Some packages define ARGMATCH_DIE and ARGMATCH_DIE_DECL in , 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) {