about summary refs log tree commit diff
path: root/wcsmbs/tst-wcsnlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/tst-wcsnlen.c')
-rw-r--r--wcsmbs/tst-wcsnlen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/wcsmbs/tst-wcsnlen.c b/wcsmbs/tst-wcsnlen.c
index 60e64ad657..8d4b8b5563 100644
--- a/wcsmbs/tst-wcsnlen.c
+++ b/wcsmbs/tst-wcsnlen.c
@@ -27,8 +27,8 @@
       printf ("wcsnlen (L\"%s\", %d) = %d, not %d\n", Str, Max, n, Exp);      \
     }
 
-int
-main (void)
+static int
+do_test (void)
 {
   int result = 0;
   int n;
@@ -48,3 +48,6 @@ main (void)
 
   return result;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"