about summary refs log tree commit diff
path: root/wcsmbs/tst-mbsrtowcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/tst-mbsrtowcs.c')
-rw-r--r--wcsmbs/tst-mbsrtowcs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/wcsmbs/tst-mbsrtowcs.c b/wcsmbs/tst-mbsrtowcs.c
index 8d7e2cbeef..405534d674 100644
--- a/wcsmbs/tst-mbsrtowcs.c
+++ b/wcsmbs/tst-mbsrtowcs.c
@@ -21,8 +21,8 @@
 #include <string.h>
 #include <wchar.h>
 
-int
-main (void)
+static int
+do_test (void)
 {
   const unsigned char buf[] = { 'a', 'b', '\0', 'c', 'd', '\0', 'e' };
   wchar_t out[sizeof (buf)];
@@ -62,3 +62,6 @@ main (void)
     }
   return result;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"