From 3b055b478685ccae785e656bdb94eedcdb6f1026 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 23 Apr 2009 18:58:19 +0000 Subject: * shadow/Makefile (tests): Add tst-shadow. * shadow/tst-shadow.c: New file. (public_sET_STATe): Pretty printing. --- gshadow/tst-gshadow.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gshadow') diff --git a/gshadow/tst-gshadow.c b/gshadow/tst-gshadow.c index 8c26a48..8b469b7 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" -- cgit v1.1