From: Pádraig Brady
Date: Fri, 9 Nov 2012 11:55:25 +0000 (+0000) Subject: getlogin_r-tests: allow errno == ENXIO or ENOENT X-Git-Tag: v0.1~372 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=bfe5b0dfd062fb9ffbc61b27a0d750c41abc1a8e;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index cca6c07136..67e0342576 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2012-11-09 Pádraig Brady
+
+ getlogin-tests: allow errno == ENXIO
+ * tests/test-getlogin.c (main): Skip tests if getlogin fails
+ with errno == ENXIO (No controlling tty).
+ getlogin_r-tests: Likewise. Also allow errno == ENOENT
+ * 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.
+
2012-11-09 Paul Eggert