# HG changeset patch # User Bruno Haible # Date 1552234170 -3600 # Node ID 5207eb0dcd2a04f76ec82924a4edde72268aaea1 # Parent 5b87a9bf72401d19ed663f12dbda77aad98511b7 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. diff -r 5b87a9bf7240 -r 5207eb0dcd2a ChangeLog --- 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 + + 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 uninorm tests: Free allocated memory. diff -r 5b87a9bf7240 -r 5207eb0dcd2a tests/test-fprintf-posix2.c --- 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 -#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 #include diff -r 5b87a9bf7240 -r 5207eb0dcd2a tests/test-printf-posix2.c --- 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 -#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 #include