From: Bruno Haible Date: Sun, 11 Mar 2007 22:19:18 +0000 (+0000) Subject: Avoid test failures. X-Git-Tag: cvs-readonly~798 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=f4c860830bab698f86e0f3d0d6014e1337553c71;p=gnulib.git Avoid test failures. --- diff --git a/ChangeLog b/ChangeLog index c3b03d667..0eff29e0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-03-11 Bruno Haible + * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's + substitute doesn't pass. + +2007-03-11 Bruno Haible + * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion. 2007-03-11 Bruno Haible diff --git a/tests/test-stdbool.c b/tests/test-stdbool.c index 73fd61e02..0314be34d 100644 --- a/tests/test-stdbool.c +++ b/tests/test-stdbool.c @@ -40,13 +40,17 @@ "error: __bool_true_false_are_defined is not defined" #endif +#if 0 /* Cannot be guaranteed with gnulib's . */ struct s { _Bool s: 1; _Bool t; } s; +#endif char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; +#if 0 /* Cannot be guaranteed with gnulib's . */ char d[(bool) 0.5 == true ? 1 : -1]; bool e = &s; +#endif char f[(_Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; @@ -55,6 +59,7 @@ enum { j = false, k = true, l = false * true, m = true * 256 }; _Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; +#if 0 /* Cannot be guaranteed with gnulib's . */ #if defined __xlc__ || defined __GNUC__ /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 reported by James Lemley on 2005-10-05; see @@ -74,6 +79,7 @@ char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; char digs[] = "0123456789"; int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); #endif +#endif /* Catch a bug in an HP-UX C compiler. See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html