X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-argmatch.c;h=e7eaf5529d827cc96080590b6105a41e385d65ea;hb=9c9a9765811eb1e698517065953e09d6b8c07400;hp=f6126f6bd95e499f56113ef2bc4b9fa0101a3293;hpb=5c20ddee5f3b0b7a6afa8b23c9513738a92fca33;p=gnulib.git diff --git a/tests/test-argmatch.c b/tests/test-argmatch.c index f6126f6bd..e7eaf5529 100644 --- a/tests/test-argmatch.c +++ b/tests/test-argmatch.c @@ -1,5 +1,5 @@ /* Test of exact or abbreviated match search. - Copyright (C) 1990, 1998-1999, 2001-2007 Free Software Foundation, Inc. + Copyright (C) 1990, 1998-1999, 2001-2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,10 +19,6 @@ #include -/* Some packages define ARGMATCH_DIE in their . Here we want to - assume the default definition of ARGMATCH_DIE. */ -#undef ARGMATCH_DIE - #include "argmatch.h" #include @@ -36,11 +32,18 @@ if (!(expr)) \ { \ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ + fflush (stderr); \ abort (); \ } \ } \ while (0) +/* 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 + enum backup_type { no_backups,