changeset 10238:22aa2c7c5a43

Conditionally disable part of the test.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 Jun 2008 22:20:15 +0200
parents 11dac0bf8a38
children e7f22aa7841e
files ChangeLog tests/test-stdint.c
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jun 22 22:02:39 2008 +0200
+++ b/ChangeLog	Sun Jun 22 22:20:15 2008 +0200
@@ -1,3 +1,9 @@
+2008-06-22  Bruno Haible  <bruno@clisp.org>
+
+	* tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
+	conditionally.
+	Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
+
 2008-06-22  Bruno Haible  <bruno@clisp.org>
 
 	* doc/posix-functions/siginterrupt.texi: Move note.
--- a/tests/test-stdint.c	Sun Jun 22 22:02:39 2008 +0200
+++ b/tests/test-stdint.c	Sun Jun 22 22:20:15 2008 +0200
@@ -1,5 +1,5 @@
 /* Test of <stdint.h> substitute.
-   Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2006-2008 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
@@ -246,11 +246,15 @@
 verify (TYPE_MAXIMUM (uintmax_t) == UINTMAX_MAX);
 verify_same_types (UINTMAX_MAX, (uintmax_t) 0 + 0);
 
+/* As of 2007, Sun C and HP-UX 10.20 cc don't support 'long long' constants in
+   the preprocessor.  */
+#if !(defined __SUNPRO_C || (defined __hpux && !defined __GNUC__))
 #if INTMAX_MIN && INTMAX_MAX && UINTMAX_MAX
 /* ok */
 #else
 err or;
 #endif
+#endif
 
 /* 7.18.3. Limits of other integer types */