Mercurial > gnulib
changeset 40227:5207eb0dcd2a
tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
* tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
is in use.
* tests/test-printf-posix2.c: Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 10 Mar 2019 17:09:30 +0100 |
parents | 5b87a9bf7240 |
children | bb9e295185c8 |
files | ChangeLog tests/test-fprintf-posix2.c tests/test-printf-posix2.c |
diffstat | 3 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Mar 10 15:14:01 2019 +0100 +++ b/ChangeLog Sun Mar 10 17:09:30 2019 +0100 @@ -1,3 +1,10 @@ +2019-03-10 Bruno Haible <bruno@clisp.org> + + tests: Avoid havoc with "gcc -fcheck-pointer-bounds". + * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds + is in use. + * tests/test-printf-posix2.c: Likewise. + 2019-03-10 Bruno Haible <bruno@clisp.org> uninorm tests: Free allocated memory.
--- a/tests/test-fprintf-posix2.c Sun Mar 10 15:14:01 2019 +0100 +++ b/tests/test-fprintf-posix2.c Sun Mar 10 17:09:30 2019 +0100 @@ -20,7 +20,10 @@ #include <stdio.h> -#if HAVE_GETRLIMIT && HAVE_SETRLIMIT +/* This test assumes getrlimit() and setrlimit(). + With "gcc -fcheck-pointer-bounds -mmpx -static", it produces an + endless loop of "Saw a #BR!" messages. */ +#if HAVE_GETRLIMIT && HAVE_SETRLIMIT && !defined __CHKP__ #include <stdlib.h> #include <sys/types.h>
--- a/tests/test-printf-posix2.c Sun Mar 10 15:14:01 2019 +0100 +++ b/tests/test-printf-posix2.c Sun Mar 10 17:09:30 2019 +0100 @@ -20,7 +20,10 @@ #include <stdio.h> -#if HAVE_GETRLIMIT && HAVE_SETRLIMIT +/* This test assumes getrlimit() and setrlimit(). + With "gcc -fcheck-pointer-bounds -mmpx -static", it produces an + endless loop of "Saw a #BR!" messages. */ +#if HAVE_GETRLIMIT && HAVE_SETRLIMIT && !defined __CHKP__ #include <stdlib.h> #include <sys/types.h>