setenv: relax requirement in light of POSIX ruling
[pspp] / tests / test-setenv.c
index 61be8381bc36ab8d5538da74e3fcdca0a3bec76b..eb1fe3336f2414a6601ade9a1133d7728a7308ac 100644 (file)
@@ -52,9 +52,13 @@ main (void)
   errno = 0;
   ASSERT (setenv ("a=b", "", 0) == -1);
   ASSERT (errno == EINVAL);
+#if 0
+  /* glibc and gnulib's implementation guarantee this, but POSIX no
+     longer requires it: http://austingroupbugs.net/view.php?id=185  */
   errno = 0;
   ASSERT (setenv (NULL, "", 0) == -1);
   ASSERT (errno == EINVAL);
+#endif
 
   return 0;
 }