]> git.ozlabs.org Git - ccan/blobdiff - ccan/noerr/test/run.c
noerr: don't leave tmpnam entries in /tmp in tests.
[ccan] / 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();
 }