Work around mingw test failures exposed by m4-1.4.9b.
authorEric Blake <ebb9@byu.net>
Thu, 31 May 2007 03:21:00 +0000 (03:21 +0000)
committerEric Blake <ebb9@byu.net>
Thu, 31 May 2007 03:21:00 +0000 (03:21 +0000)
* m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
* tests/test-unistd.c: Disable uid_t and git_t tests for the
moment.

ChangeLog
m4/stdint.m4
tests/test-unistd.c

index 4218544..4bd2958 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 659ca85..3de7e13 100644 (file)
@@ -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 @@ struct s {
   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:
index 19d2bed..dd112f6 100644 (file)
@@ -27,8 +27,10 @@ int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
 /* 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