projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
getlogin_r-tests: allow errno == ENXIO or ENOENT
[gnulib.git]
/
tests
/
test-getlogin.c
diff --git
a/tests/test-getlogin.c
b/tests/test-getlogin.c
index
d86fec2
..
f7903ae
100644
(file)
--- a/
tests/test-getlogin.c
+++ b/
tests/test-getlogin.c
@@
-49,6
+49,7
@@
main (void)
/* getlogin() fails when stdin is not connected to a tty. */
ASSERT (errno == ENOTTY
|| errno == EINVAL /* seen on Linux/SPARC */
+ || errno == ENXIO
);
#if !defined __hpux /* On HP-UX 11.11 it fails anyway. */
ASSERT (! isatty (0));