about summary refs log tree commit diff
path: root/gshadow/tst-gshadow.c
diff options
context:
space:
mode:
Diffstat (limited to 'gshadow/tst-gshadow.c')
-rw-r--r--gshadow/tst-gshadow.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gshadow/tst-gshadow.c b/gshadow/tst-gshadow.c
index 8c26a486a7..8b469b723d 100644
--- a/gshadow/tst-gshadow.c
+++ b/gshadow/tst-gshadow.c
@@ -27,10 +27,10 @@ static const struct sgrp data[] =
 #define ndata (sizeof (data) / sizeof (data[0]))
 
 
-int
-main (void)
+static int
+do_test (void)
 {
-  FILE *fp = fopen ("/tmp/aaa", "w+");//tmpfile ();
+  FILE *fp = tmpfile ();
   if (fp == NULL)
     {
       puts ("cannot open temporary file");
@@ -136,3 +136,6 @@ main (void)
 
   return result;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"