X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-getlogin.c;h=197aed8275d9ff946690c6f87d8843bf62e377e0;hb=cd56634a4a8179fd5a4419fbb3e27211b042ab1c;hp=d86fec2758c213c0c3f281284f94af0042a92b4f;hpb=4f81aa5778dc88b99d21ad8d04a4bc9401366311;p=gnulib.git diff --git a/tests/test-getlogin.c b/tests/test-getlogin.c index d86fec275..197aed827 100644 --- a/tests/test-getlogin.c +++ b/tests/test-getlogin.c @@ -1,5 +1,5 @@ /* Test of getting user name. - Copyright (C) 2010-2012 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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));