Re: [PATCH][Revisedx2] PR55679: skip invalid tests from r194458 on darwin

2012-12-17 Thread Jakub Jelinek
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

Re: [PATCH][Revisedx2] PR55679: skip invalid tests from r194458 on darwin

2012-12-17 Thread Jack Howarth
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

Re: [PATCH][Revisedx2] PR55679: skip invalid tests from r194458 on darwin

2012-12-17 Thread Jakub Jelinek
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

Re: [PATCH][Revisedx2] PR55679: skip invalid tests from r194458 on darwin

2012-12-16 Thread Dominique Dhumieres
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

[PATCH][Revisedx2] PR55679: skip invalid tests from r194458 on darwin

2012-12-16 Thread Jack Howarth
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