On Mon, Dec 17, 2012 at 10:13:25AM -0500, Jack Howarth wrote:
> On darwin in /usr/include/sys/resource.h, we have...
>
> #define RLIMIT_AS 5 /* address space (resident set size)
> */
> #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
> #define RLIMIT_RSS R
On Mon, Dec 17, 2012 at 03:42:59PM +0100, Jakub Jelinek wrote:
> On Sun, Dec 16, 2012 at 04:19:11PM -0500, Jack Howarth wrote:
> > 2012-12-16 Jack Howarth
> >
> > PR sanitizer/55679
> > * g++.dg/asan/interception-test-1.C: Skip on darwin.
> > * lib/target-supports.exp (check_effectiv
On Sun, Dec 16, 2012 at 04:19:11PM -0500, Jack Howarth wrote:
> 2012-12-16 Jack Howarth
>
> PR sanitizer/55679
> * g++.dg/asan/interception-test-1.C: Skip on darwin.
> * lib/target-supports.exp (check_effective_target_swapcontext): Use
> check_no_compiler_messages to test
Hi jack,
> +// { dg-skip-if "Darwin lacks RLIMIT_AS in setrlimit" { *-*-darwin* } }
The comment is not fully accurate. See pr55679 comment #17 for some analysis
and another candidate patch for rlimit-mmap-test-1.c (it will detect any fix
by Apple).
Cheers,
Dominique
The attached revised patch disables three asan tests introduced in r194458
which are invalid
on darwin. The g++.dg/asan/interception-test-1.C test should be dg-skip-if'd
on darwin since
mac function interposition is used instead of interception. The
c-c++-common/asan/swapcontext-test-1.c
te