about summary refs log tree commit diff
path: root/stdlib/tst-random.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/tst-random.c')
-rw-r--r--stdlib/tst-random.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/stdlib/tst-random.c b/stdlib/tst-random.c
index 47195d635a..8fe0993dd7 100644
--- a/stdlib/tst-random.c
+++ b/stdlib/tst-random.c
@@ -46,8 +46,8 @@ const unsigned int seed[3] = { 0x12344321U, 0xEE11DD22U, 0xFEDCBA98 };
 
 void fail (const char *msg, int s, int i) __attribute__ ((__noreturn__));
 
-int
-main (void)
+static int
+do_test (void)
 {
   long int rnd[nseq][nrnd];	/* pseudorandom numbers */
   char* state[nseq];		/* state for PRNG */
@@ -117,3 +117,6 @@ fail (const char *msg, int s, int i)
   printf ("%s (seq %d, pos %d).\n", msg, s, i);
   exit (1);
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"