]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
tests/docker: only enable ubsan for test-clang
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Oct 2019 13:48:55 +0000 (15:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Oct 2019 16:49:19 +0000 (18:49 +0200)
-fsanitize=undefined is not the same thing as --enable-sanitizers.  After
commit 47c823e ("tests/docker: add sanitizers back to clang build", 2019-09-11)
test-clang is almost duplicating the asan (test-debug) test, so
partly revert commit 47c823e5b while leaving ubsan enabled.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/docker/test-clang

index db9e6970b782c5f34de05dfe2515787303a5386b..8c51ead5181b708dbd7d0f82486ec0780b9199ff 100755 (executable)
@@ -17,7 +17,9 @@ requires clang
 
 cd "$BUILD_DIR"
 
-OPTS="--cxx=clang++ --cc=clang --host-cc=clang --enable-sanitizers"
+OPTS="--cxx=clang++ --cc=clang --host-cc=clang"
+OPTS="$OPTS --extra-cflags=-fsanitize=undefined \
+    --extra-cflags=-fno-sanitize=float-divide-by-zero"
 build_qemu $OPTS
 check_qemu
 install_qemu