getdtablesize: work around cygwin issue
[gnulib.git] / tests / test-getdtablesize.c
index 7046481..b371ccf 100644 (file)
@@ -29,6 +29,8 @@ int
 main (int argc, char *argv[])
 {
   ASSERT (getdtablesize () >= 3);
+  ASSERT (dup2 (0, getdtablesize() - 1) == getdtablesize () - 1);
+  ASSERT (dup2 (0, getdtablesize()) == -1);
 
   return 0;
 }