about summary refs log tree commit diff
path: root/libio/tst-freopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/tst-freopen.c')
-rw-r--r--libio/tst-freopen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libio/tst-freopen.c b/libio/tst-freopen.c
index f9e71773e7..94284ec796 100644
--- a/libio/tst-freopen.c
+++ b/libio/tst-freopen.c
@@ -22,8 +22,8 @@
 #include <string.h>
 #include <unistd.h>
 
-int
-main (void)
+static int
+do_test (void)
 {
   char name[] = "/tmp/tst-freopen.XXXXXX";
   const char * const test = "Let's test freopen.\n";
@@ -100,3 +100,6 @@ main (void)
   unlink (name);
   exit (0);
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"