]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove the temporary file created during the test before exiting.
authorBart Van Assche <bvanassche@acm.org>
Sun, 26 Jul 2009 15:43:39 +0000 (15:43 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 26 Jul 2009 15:43:39 +0000 (15:43 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10614

memcheck/tests/darwin/aio.c

index e0dceef8f7b4ed16a7fb11fcb5b4cc0be34179a8..87e72143a948f2cb4afb65bb422c7636df4db5f1 100644 (file)
@@ -3,7 +3,7 @@
 #include <fcntl.h>
 #include <stdio.h>
 #include <string.h>
-
+#include <unistd.h>
 int x;
 
 int main(void)
@@ -82,6 +82,8 @@ int main(void)
    assert( aio_return(&a) < 0 );    // (repeated aio_return();  fails because 
                                     // Valgrind can't find &a in the table)
 
+   unlink("mytmpfile");
+
    return x;
 };