/* Test isatty() function.
- Copyright (C) 2011-2012 Free Software Foundation, Inc.
+ Copyright (C) 2011-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
errno = 0;
ASSERT (isatty (-1) == 0);
ASSERT (errno == EBADF
- || errno == 0 /* seen on Solaris 10 */
+ || errno == 0 /* seen on IRIX 6.5, Solaris 10 */
);
}
{
+ close (99);
errno = 0;
ASSERT (isatty (99) == 0);
ASSERT (errno == EBADF
- || errno == 0 /* seen on Solaris 10 */
+ || errno == 0 /* seen on IRIX 6.5, Solaris 10 */
);
}