summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--tests/test-fprintf-posix2.c5
-rw-r--r--tests/test-printf-posix2.c5
3 files changed, 15 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9678f430d0..fd5b5e0eaf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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.
* tests/uninorm/test-u32-normalize-big.h
(struct normalization_test_file): Remove 'const' from allocated member.
diff --git a/tests/test-fprintf-posix2.c b/tests/test-fprintf-posix2.c
index 81aea17be1..c55e509b26 100644
--- a/tests/test-fprintf-posix2.c
+++ b/tests/test-fprintf-posix2.c
@@ -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>
diff --git a/tests/test-printf-posix2.c b/tests/test-printf-posix2.c
index 839e83a6b7..8a26bf220b 100644
--- a/tests/test-printf-posix2.c
+++ b/tests/test-printf-posix2.c
@@ -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>