getlogin_r-tests: allow errno == ENXIO or ENOENT
authorPádraig Brady <P@draigBrady.com>
Fri, 9 Nov 2012 11:55:25 +0000 (11:55 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 9 Nov 2012 11:58:55 +0000 (11:58 +0000)
commitbfe5b0dfd062fb9ffbc61b27a0d750c41abc1a8e
tree892042718e0612b2cee118273980f544078d4a9f
parent4f81aa5778dc88b99d21ad8d04a4bc9401366311
getlogin_r-tests: allow errno == ENXIO or ENOENT

* tests/test-getlogin.c (main): Skip tests if getlogin fails
with errno == ENXIO (No controlling tty).
* tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
with errno == ENOENT.  This was reported to happen in various
situations on GNU/Linux.
ChangeLog
tests/test-getlogin.c
tests/test-getlogin_r.c