Mercurial > hg > octave-lojdl > gnulib-hg
changeset 8420:baddd6f5c9a3
Avoid test failures.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 11 Mar 2007 22:19:18 +0000 |
parents | d5e85ac6458c |
children | faaa486649e7 |
files | ChangeLog tests/test-stdbool.c |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-11 Bruno Haible <bruno@clisp.org> + + * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's + <stdbool.h> substitute doesn't pass. + 2007-03-11 Bruno Haible <bruno@clisp.org> * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
--- 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 <stdbool.h>. */ 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 <stdbool.h>. */ 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 @@ _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 <stdbool.h>. */ #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 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