changeset 8904:51fbf26a13ed

Work around mingw test failures exposed by m4-1.4.9b. * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug. * tests/test-unistd.c: Disable uid_t and git_t tests for the moment.
author Eric Blake <ebb9@byu.net>
date Thu, 31 May 2007 03:21:00 +0000
parents 33db9cbd68d7
children 20765f91596b
files ChangeLog m4/stdint.m4 tests/test-unistd.c
diffstat 3 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu May 31 01:09:03 2007 +0000
+++ b/ChangeLog	Thu May 31 03:21:00 2007 +0000
@@ -1,3 +1,11 @@
+2007-05-30  Eric Blake  <ebb9@byu.net>
+	and Bruno Haible  <bruno@clisp.org>
+
+	Work around mingw test failures exposed by m4-1.4.9b.
+	* m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
+	* tests/test-unistd.c: Disable uid_t and git_t tests for the
+	moment.
+
 2007-05-30  Bruno Haible  <bruno@clisp.org>
 
 	* tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
--- a/m4/stdint.m4	Thu May 31 01:09:03 2007 +0000
+++ b/m4/stdint.m4	Thu May 31 03:21:00 2007 +0000
@@ -1,4 +1,4 @@
-# stdint.m4 serial 23
+# stdint.m4 serial 24
 dnl Copyright (C) 2001-2002, 2004-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -147,7 +147,9 @@
   int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= (sig_atomic_t) 0 && (sig_atomic_t) 0 < SIG_ATOMIC_MAX ? 1 : -1;
   int check_SIZE: (size_t) 0 < SIZE_MAX ? 1 : -1;
   int check_WCHAR: WCHAR_MIN <= (wchar_t) 0 && (wchar_t) 0 < WCHAR_MAX ? 1 : -1;
-  int check_WINT: WINT_MIN <= (wint_t) 0 && (wint_t) 0 < WINT_MAX ? 1 : -1;
+  int check_WINT: WINT_MIN <= (wint_t) 0 && (wint_t) 0 < WINT_MAX
+                  && (WINT_MIN < (wint_t) 0 || (wint_t) -1 == (wint_t) WINT_MAX)
+                  ? 1 : -1;
 
   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
   int check_UINT8_C:
--- a/tests/test-unistd.c	Thu May 31 01:09:03 2007 +0000
+++ b/tests/test-unistd.c	Thu May 31 03:21:00 2007 +0000
@@ -27,8 +27,10 @@
 /* Check that the types are all defined.  */
 size_t t1;
 ssize_t t2;
+#ifdef TODO /* Not implemented in gnulib yet */
 uid_t t3;
 gid_t t4;
+#endif
 off_t t5;
 pid_t t6;
 #ifdef TODO