diff options
Diffstat (limited to 'tests/test-unsetenv.c')
-rw-r--r-- | tests/test-unsetenv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-unsetenv.c b/tests/test-unsetenv.c index 11af82c991..2815cf3a39 100644 --- a/tests/test-unsetenv.c +++ b/tests/test-unsetenv.c @@ -57,9 +57,13 @@ main (void) errno = 0; ASSERT (unsetenv ("a=b") == -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 (unsetenv (NULL) == -1); ASSERT (errno == EINVAL); +#endif return 0; } |