Work around open() bug on HP-UX 11 and Solaris 9.
[pspp] / tests / test-open.c
index c570aaad41fb92d8d2a40ecf908b4d2c957ac220..aad36c4ada8131c2061bbfe59ce92107b262b9c7 100644 (file)
@@ -38,6 +38,8 @@
 int
 main ()
 {
+  ASSERT (open ("nonexist.ent/", O_CREAT, 0600) < 0);
+
   ASSERT (open ("/dev/null", O_RDONLY) >= 0);
 
   return 0;