noerr: don't leave tmpnam entries in /tmp in tests.
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 26 Sep 2010 07:32:25 +0000 (17:02 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 26 Sep 2010 07:32:25 +0000 (17:02 +0930)
ccan/noerr/test/run.c

index 144e4dd0871025b4ef6834fc01545e8889b985f8..aeef1ca835841881b6fb6e1bded76d96d4d148d8 100644 (file)
@@ -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();
 }