[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 09/28] tests/docker: add sanitizers back to clang build
From: |
Paolo Bonzini |
Subject: |
Re: [PULL 09/28] tests/docker: add sanitizers back to clang build |
Date: |
Tue, 1 Oct 2019 09:36:27 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 26/09/19 20:35, Alex Bennée wrote:
> From: John Snow <address@hidden>
>
> Fedora23 is but a distant twinkle. The sanitizer works again, and even
> if not, we have --enable-sanitizers now.
>
> Signed-off-by: John Snow <address@hidden>
> Message-Id: <address@hidden>
> Signed-off-by: Alex Bennée <address@hidden>
>
> diff --git a/tests/docker/test-clang b/tests/docker/test-clang
> index 324e341cea..db9e6970b7 100755
> --- a/tests/docker/test-clang
> +++ b/tests/docker/test-clang
> @@ -17,11 +17,7 @@ requires clang
>
> cd "$BUILD_DIR"
>
> -OPTS="--cxx=clang++ --cc=clang --host-cc=clang"
> -# -fsanitize=undefined is broken on Fedora 23, skip it for now
> -# See also: https://bugzilla.redhat.com/show_bug.cgi?id=1263834
> -#OPTS="$OPTS --extra-cflags=-fsanitize=undefined \
> - #--extra-cflags=-fno-sanitize=float-divide-by-zero"
> +OPTS="--cxx=clang++ --cc=clang --host-cc=clang --enable-sanitizers"
> build_qemu $OPTS
> check_qemu
> install_qemu
>
-fsanitize=undefined is not the same thing as --enable-sanitizers. This
is basically duplicating the asan (test-debug) test now.
In fact, since we have the asan test that includes all sanitizers
including ubsan, I think it's easiest to just revert this patch.
Paolo
- Re: [PULL 09/28] tests/docker: add sanitizers back to clang build,
Paolo Bonzini <=