about summary refs log tree commit diff
path: root/stdio-common/tst-tmpnam.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/tst-tmpnam.c')
-rw-r--r--stdio-common/tst-tmpnam.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/stdio-common/tst-tmpnam.c b/stdio-common/tst-tmpnam.c
index a3bd9fb90c..3b97064182 100644
--- a/stdio-common/tst-tmpnam.c
+++ b/stdio-common/tst-tmpnam.c
@@ -19,8 +19,8 @@
 #include <stdlib.h>
 #include <string.h>
 
-int
-main (void)
+static int
+do_test (void)
 {
   const char *name;
   int retval = 0;
@@ -48,3 +48,6 @@ main (void)
 
   return retval;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"