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 'unistr/u16-strcat'.
[gnulib.git]
/
tests
/
test-getopt.c
diff --git
a/tests/test-getopt.c
b/tests/test-getopt.c
index
9502a44
..
fe822ed
100644
(file)
--- a/
tests/test-getopt.c
+++ b/
tests/test-getopt.c
@@
-1,5
+1,5
@@
/* Test of command line argument processing.
/* Test of command line argument processing.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009
, 2010
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
@@
-55,19
+55,10
@@
SIGNATURE_CHECK (getopt, int, (int, char * const[], char const *));
duplicate the original stderr. */
#define BACKUP_STDERR_FILENO 10
duplicate the original stderr. */
#define BACKUP_STDERR_FILENO 10
-static FILE *myerr;
+#define ASSERT_STREAM myerr
+#include "macros.h"
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (myerr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (myerr); \
- abort (); \
- } \
- } \
- while (0)
+static FILE *myerr;
#include "test-getopt.h"
#if GNULIB_GETOPT_GNU
#include "test-getopt.h"
#if GNULIB_GETOPT_GNU