about summary refs log tree commit diff
path: root/misc/tst-dirname.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/tst-dirname.c')
-rw-r--r--misc/tst-dirname.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/misc/tst-dirname.c b/misc/tst-dirname.c
index d8f33dfc94..d6c05ad3b3 100644
--- a/misc/tst-dirname.c
+++ b/misc/tst-dirname.c
@@ -37,8 +37,8 @@ test (const char *input, const char *result)
   return retval;
 }
 
-int
-main (void)
+static int
+do_test (void)
 {
   int result = 0;
 
@@ -67,3 +67,6 @@ main (void)
 
   return result != 0;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"