gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / tests / test-ftruncate.c
index 820d471..8b795a8 100644 (file)
@@ -38,6 +38,7 @@ main (int argc, char *argv[])
     ASSERT (errno == EBADF);
   }
   {
+    close (99);
     errno = 0;
     ASSERT (ftruncate (99, 0) == -1);
     ASSERT (errno == EBADF);