diff mbox

[COMMITTED] Convert dlfcn/tststatic to use test-skeleton.

Message ID 20150327195641.377F72C3B18@topped-with-meat.com
State New
Headers show

Commit Message

Roland McGrath March 27, 2015, 7:56 p.m. UTC
2015-03-27  Roland McGrath  <roland@hack.frob.com>

	* dlfcn/tststatic.c (main): Converted to ...
	(do_test): ... this.
	(TEST_FUNCTION): New macro.
	Include test-skeleton.c.
diff mbox

Patch

--- a/dlfcn/tststatic.c
+++ b/dlfcn/tststatic.c
@@ -2,8 +2,8 @@ 
 #include <stdio.h>
 #include <stdlib.h>
 
-int
-main (void)
+static int
+do_test (void)
 {
   void *handle;
   int (*test) (int);
@@ -33,3 +33,6 @@  main (void)
   dlclose (handle);
   return 0;
 }
+
+#define TEST_FUNCTION   do_test ()
+#include "../test-skeleton.c"