X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-argmatch.c;h=e7eaf5529d827cc96080590b6105a41e385d65ea;hb=3b5404b2d283870dccf966696b783f83ab2dfd58;hp=3d6f968cf8f12203b7259fea1a2fa1300dffc7d1;hpb=67ffa4662ff4d8ec50df7a397fbf1eff46da4408;p=gnulib.git diff --git a/tests/test-argmatch.c b/tests/test-argmatch.c index 3d6f968cf..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 @@ -32,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, @@ -62,11 +69,6 @@ static const enum backup_type backup_vals[] = numbered_backups, numbered_backups, numbered_backups }; -void -usage (void) -{ -} - int main (int argc, char *argv[]) {