This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Disable asan tests under ulimit -v
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 24 Mar 2018 09:51:52 +0100
- Subject: Re: RFC: Disable asan tests under ulimit -v
- References: <CADzB+2=oWE_THszwoo-_WE6xb+bhvYcWde80F-fvQB2h-TM9iw@mail.gmail.com>
On Mär 23 2018, Jason Merrill <jason@redhat.com> wrote:
> diff --git a/gcc/testsuite/g++.dg/asan/asan.exp b/gcc/testsuite/g++.dg/asan/asan.exp
> index 4ee8dd98697..a22d2ac5e20 100644
> --- a/gcc/testsuite/g++.dg/asan/asan.exp
> +++ b/gcc/testsuite/g++.dg/asan/asan.exp
> @@ -24,6 +24,13 @@ load_lib asan-dg.exp
> dg-init
> asan_init
>
> +# asan doesn't work if there's a ulimit on virtual memory.
> +if ![is_remote target] {
> + if [regexp {^[0-9]+$} "[exec ulimit -v]"] {
Does that actually work? ulimit is a shell builtin, but exec does not
use the shell. Also, you get an error if the command returns a non-zero
status, or isn't found.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."