projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
[gnulib.git]
/
tests
/
test-pipe-filter-gi1.c
diff --git
a/tests/test-pipe-filter-gi1.c
b/tests/test-pipe-filter-gi1.c
index
2284198
..
b1f94e1
100644
(file)
--- a/
tests/test-pipe-filter-gi1.c
+++ b/
tests/test-pipe-filter-gi1.c
@@
-1,5
+1,5
@@
/* Test of filtering of data through a subprocess.
/* Test of filtering of data through a subprocess.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009
-2011
Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2009.
This program is free software: you can redistribute it and/or modify
Written by Bruno Haible <haible@clisp.cons.org>, 2009.
This program is free software: you can redistribute it and/or modify
@@
-19,29
+19,15
@@
#include "pipe-filter.h"
#include "pipe-filter.h"
-#include <stdio.h>
-#include <stdlib.h>
-
#include "binary-io.h"
#include "c-ctype.h"
#include "read-file.h"
#include "progname.h"
#include "binary-io.h"
#include "c-ctype.h"
#include "read-file.h"
#include "progname.h"
-
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
+#include "macros.h"
-/* Pipe a text file through 'tr
a-z A-Z', which converts ASCII characters from
- lower case to upper case. */
+/* Pipe a text file through 'tr
"[a-z]" "[A-Z]"', which converts ASCII
+
characters from
lower case to upper case. */
struct locals
{
struct locals
{
@@
-110,8
+96,8
@@
main (int argc, char *argv[])
l.nread = 0;
argv[0] = tr_program;
l.nread = 0;
argv[0] = tr_program;
- argv[1] = "
a-z
";
- argv[2] = "
A-Z
";
+ argv[1] = "
[a-z]
";
+ argv[2] = "
[A-Z]
";
argv[3] = NULL;
f = pipe_filter_gi_create ("tr", tr_program, argv, false, true,
argv[3] = NULL;
f = pipe_filter_gi_create ("tr", tr_program, argv, false, true,