about summary refs log tree commit diff
path: root/rt/tst-aio64.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt/tst-aio64.c')
-rw-r--r--rt/tst-aio64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rt/tst-aio64.c b/rt/tst-aio64.c
index 3a9ae797b1..b315eec727 100644
--- a/rt/tst-aio64.c
+++ b/rt/tst-aio64.c
@@ -55,12 +55,12 @@ do_prepare (int argc, char *argv[])
   name = malloc (name_len + sizeof ("/aioXXXXXX"));
   mempcpy (mempcpy (name, test_dir, name_len),
 	   "/aioXXXXXX", sizeof ("/aioXXXXXX"));
-  add_temp_file (name);
 
   /* Open our test file.   */
   fd = mkstemp (name);
   if (fd == -1)
     error (EXIT_FAILURE, errno, "cannot open test file `%s'", name);
+  add_temp_file (name);
 }