From: Rusty Russell Date: Sun, 26 Sep 2010 07:32:25 +0000 (+0930) Subject: noerr: don't leave tmpnam entries in /tmp in tests. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=ef095d99f75b8bb6273e8f8980271de276489d44 noerr: don't leave tmpnam entries in /tmp in tests. --- diff --git a/ccan/noerr/test/run.c b/ccan/noerr/test/run.c index 144e4dd0..aeef1ca8 100644 --- a/ccan/noerr/test/run.c +++ b/ccan/noerr/test/run.c @@ -58,6 +58,7 @@ int main(int argc, char *argv[]) errno = 100; ok1(fclose_noerr(fp) == 0); ok1(errno == 100); + unlink(name); return exit_status(); }