From 11167af9538fb8526d30784ae048d45d1abc83b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Thu, 22 May 2014 17:09:49 +0100 Subject: [PATCH] getlogin_r-tests: fix various issues in recent change * tests/test-getlogin_r.c: Include required headers that were missed in recent commit eec20b4e. Also consistently check the errno rather than the return value from getlogin_r as POSIX only specifies that non zero is returned on error. * modules/getlogin_r-tests (configure.ac): Add the check for ttyname(). --- ChangeLog | 9 +++++++++ modules/getlogin_r-tests | 1 + tests/test-getlogin_r.c | 7 ++++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 35ddc055dd..aa3435059d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2014-05-22 Pádraig Brady
+
+ getlogin_r-tests: fix various issues in recent change
+ * tests/test-getlogin_r.c: Include required headers that were
+ missed in recent commit eec20b4e.
+ Also consistently check the errno rather than the return value from
+ getlogin_r as POSIX only specifies that non zero is returned on error.
+ * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
+
2014-05-21 Paul Eggert