X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-getlogin.c;h=54e48e9d53216b60e6f04b105caa423de127e867;hb=c50edd6462eaaae00f8549f9bad99d4e68b94376;hp=d86fec2758c213c0c3f281284f94af0042a92b4f;hpb=4f81aa5778dc88b99d21ad8d04a4bc9401366311;p=gnulib.git diff --git a/tests/test-getlogin.c b/tests/test-getlogin.c index d86fec275..54e48e9d5 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-2013 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));