comparison tests/test-fprintf-posix2.c @ 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 b06060465f09
children
comparison
equal deleted inserted replaced
40226:5b87a9bf7240 40227:5207eb0dcd2a
18 18
19 #include <config.h> 19 #include <config.h>
20 20
21 #include <stdio.h> 21 #include <stdio.h>
22 22
23 #if HAVE_GETRLIMIT && HAVE_SETRLIMIT 23 /* This test assumes getrlimit() and setrlimit().
24 With "gcc -fcheck-pointer-bounds -mmpx -static", it produces an
25 endless loop of "Saw a #BR!" messages. */
26 #if HAVE_GETRLIMIT && HAVE_SETRLIMIT && !defined __CHKP__
24 27
25 #include <stdlib.h> 28 #include <stdlib.h>
26 #include <sys/types.h> 29 #include <sys/types.h>
27 #include <sys/time.h> 30 #include <sys/time.h>
28 #include <sys/resource.h> 31 #include <sys/resource.h>