summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-08-24 09:30:58 +0000
committerAndreas Jaeger <aj@suse.de>2000-08-24 09:30:58 +0000
commit3b526f89b596f308b3a03e0dc0b00ed4673dc449 (patch)
tree56e39b5a2b8da44291bec2b9eaf49216b112e855 /libio
parent991dca900527357562f9908ef0dd6c166b31737c (diff)
downloadglibc-3b526f89b596f308b3a03e0dc0b00ed4673dc449.tar.gz
glibc-3b526f89b596f308b3a03e0dc0b00ed4673dc449.tar.xz
glibc-3b526f89b596f308b3a03e0dc0b00ed4673dc449.zip
Update.
	Move inclusion of test-skeleton to front to have prototype for
	add_temp_file.
Diffstat (limited to 'libio')
-rw-r--r--libio/tst_putwc.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/libio/tst_putwc.c b/libio/tst_putwc.c
index 60bb232a78..a78dfec093 100644
--- a/libio/tst_putwc.c
+++ b/libio/tst_putwc.c
@@ -26,8 +26,13 @@
 
 static const char outname[] = OBJPFX "tst_putwc.temp";
 
-
+/* Prototype for our test function.  */
+int do_test (void);
 #define TEST_FUNCTION do_test ()
+
+/* This defines the `main' function and some more.  */
+#include <test-skeleton.c>
+
 int
 do_test (void)
 {
@@ -37,6 +42,8 @@ do_test (void)
   FILE *fp;
   int res = 0;
 
+  add_temp_file (outname);
+
   fp = fopen (outname, "w+");
   if (fp == NULL)
     error (EXIT_FAILURE, errno, "cannot open temporary file");
@@ -113,6 +120,3 @@ do_test (void)
 
   return res;
 }
-
-
-#include "../test-skeleton.c"