about summary refs log tree commit diff
path: root/gshadow
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-04-23 18:58:19 +0000
committerUlrich Drepper <drepper@redhat.com>2009-04-23 18:58:19 +0000
commit3b055b478685ccae785e656bdb94eedcdb6f1026 (patch)
treef7b255979a9adc62bd5e7f223340840422816296 /gshadow
parent829fea46179b8d5cf25f8eae0b78550e3539ad60 (diff)
downloadglibc-3b055b478685ccae785e656bdb94eedcdb6f1026.tar.gz
glibc-3b055b478685ccae785e656bdb94eedcdb6f1026.tar.xz
glibc-3b055b478685ccae785e656bdb94eedcdb6f1026.zip
* shadow/Makefile (tests): Add tst-shadow.
	* shadow/tst-shadow.c: New file.

	(public_sET_STATe): Pretty printing.
Diffstat (limited to 'gshadow')
-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"