getlogin-tests: allow errno == ENOENT
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 9 Nov 2012 09:03:33 +0000 (01:03 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 9 Nov 2012 09:04:08 +0000 (01:04 -0800)
commit4f81aa5778dc88b99d21ad8d04a4bc9401366311
treecd769e66e26c6bc47b7f2d50ff96a197df4e5fdf
parent025f7741264a170d2a87c30370bc4b96b256f3b4
getlogin-tests: allow errno == ENOENT

* tests/test-getlogin.c (main): Skip tests if getlogin fails
with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
when running a test in an Emacs shell buffer.
ChangeLog
tests/test-getlogin.c