about summary refs log tree commit diff
path: root/stdio-common/tst-perror.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/tst-perror.c')
-rw-r--r--stdio-common/tst-perror.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/stdio-common/tst-perror.c b/stdio-common/tst-perror.c
index b809c2fc40..416b120b8d 100644
--- a/stdio-common/tst-perror.c
+++ b/stdio-common/tst-perror.c
@@ -24,8 +24,8 @@
 #define WC_EXP_LEN (sizeof (WC_EXP) - 1)
 
 
-int
-main (void)
+static int
+do_test (void)
 {
   int fd;
   char fname[] = "/tmp/tst-perror.XXXXXX";
@@ -152,3 +152,6 @@ main (void)
 
   return result;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"