]> Savannah Git Hosting - gnulib.git/commitdiff
tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
authorBruno Haible <bruno@clisp.org>
Sun, 10 Mar 2019 16:09:30 +0000 (17:09 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 10 Mar 2019 16:09:30 +0000 (17:09 +0100)
* tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
is in use.
* tests/test-printf-posix2.c: Likewise.

ChangeLog
tests/test-fprintf-posix2.c
tests/test-printf-posix2.c

index 9678f430d083d101a44f3ec6e0a55a12706db9c0..fd5b5e0eaf5737cb7c13c86ad0d38ddf1c13fd88 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 81aea17be192cb44eaa0bee4ed36ee5355701315..c55e509b2624ca6f022b400bef6b326ba1a1318a 100644 (file)
 
 #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>
index 839e83a6b71979864cce0dc8b94dddb20422b853..8a26bf220b18801e2155db62305722d0bba209b5 100644 (file)
 
 #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>