From: Bruno Haible Date: Sun, 22 Jun 2008 20:20:15 +0000 (+0200) Subject: Conditionally disable part of the test. X-Git-Tag: v0.1~7232 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=594dfb1623e692f4500ffc1880980ff1b52ee4b8;p=gnulib.git Conditionally disable part of the test. --- diff --git a/ChangeLog b/ChangeLog index b6826793a..a3bdbfe74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-06-22 Bruno Haible + * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test + conditionally. + Reported by Albert Chin . + +2008-06-22 Bruno Haible + * doc/posix-functions/siginterrupt.texi: Move note. * lib/signal.in.h (SA_RESTART): New macro. diff --git a/tests/test-stdint.c b/tests/test-stdint.c index 9e1d57e53..a2bf42ac8 100644 --- a/tests/test-stdint.c +++ b/tests/test-stdint.c @@ -1,5 +1,5 @@ /* Test of 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 @@ uintmax_t j[2] = { UINTMAX_C (17), UINTMAX_MAX }; 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 */