summaryrefslogtreecommitdiff
path: root/src/test.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-07 14:46:33 +0000
committerJim Meyering <jim@meyering.net>2000-05-07 14:46:33 +0000
commit72bdac727100dd893ad1041cb9a06b48fa211058 (patch)
tree8eaf75b31d328c20dcc50e79e2b124c552a0ee62 /src/test.c
parentf1013a15356cd77518af435233564f0ba7b7c099 (diff)
downloadcoreutils-72bdac727100dd893ad1041cb9a06b48fa211058.tar.xz
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test.c b/src/test.c
index d3737f93e..8b5f7a8a7 100644
--- a/src/test.c
+++ b/src/test.c
@@ -2,7 +2,7 @@
/* Modified to run with the GNU shell by bfox. */
-/* Copyright (C) 1987-1999 Free Software Foundation, Inc.
+/* Copyright (C) 1987-2000 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -973,6 +973,7 @@ posixtest (void)
#if defined (TEST_STANDALONE)
# include "long-options.h"
+# include "closeout.h"
void
usage (int status)
@@ -1080,6 +1081,8 @@ main (int margc, char **margv)
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+
+ atexit (close_stdout);
#endif /* TEST_STANDALONE */
argv = margv;