gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / tests / test-openat.c
index e10db7a..1ef07b5 100644 (file)
@@ -72,6 +72,7 @@ main (int argc _GL_UNUSED, char *argv[])
     ASSERT (errno == EBADF);
   }
   {
+    close (99);
     errno = 0;
     ASSERT (openat (99, "foo", O_RDONLY) == -1);
     ASSERT (errno == EBADF);