projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests for module 'uninorm/nfkd'.
[gnulib.git]
/
tests
/
test-argmatch.c
diff --git
a/tests/test-argmatch.c
b/tests/test-argmatch.c
index
f6126f6
..
e7eaf55
100644
(file)
--- a/
tests/test-argmatch.c
+++ b/
tests/test-argmatch.c
@@
-1,5
+1,5
@@
/* Test of exact or abbreviated match search.
/* Test of exact or abbreviated match search.
- Copyright (C) 1990, 1998-1999, 2001-200
7
Free Software Foundation, Inc.
+ Copyright (C) 1990, 1998-1999, 2001-200
8
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
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 <config.h>
#include <config.h>
-/* Some packages define ARGMATCH_DIE in their <config.h>. Here we want to
- assume the default definition of ARGMATCH_DIE. */
-#undef ARGMATCH_DIE
-
#include "argmatch.h"
#include <stdio.h>
#include "argmatch.h"
#include <stdio.h>
@@
-36,11
+32,18
@@
if (!(expr)) \
{ \
fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
if (!(expr)) \
{ \
fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+ fflush (stderr); \
abort (); \
} \
} \
while (0)
abort (); \
} \
} \
while (0)
+/* 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
+
enum backup_type
{
no_backups,
enum backup_type
{
no_backups,