mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-26 05:18:46 +00:00
ASan: unbreak Windows build by limiting backtrace* tests to glibc
My newly added backtrace test (https://reviews.llvm.org/D150491) broke the Windows buildbot (https://lab.llvm.org/buildbot/#/builders/127/builds/48103) because they do not have execinfo.h. I expect the same will happen with the backtrace_symbols test (https://reviews.llvm.org/D150498) as well. This patch does a quick fix by restricting the test scope to glibc-2.27. (A tricker fix would take into account SANITIZER_INTERCEPT_BACKTRACE, which is defined as (SI_FREEBSD || SI_NETBSD || SI_GLIBC || SI_SOLARIS))
This commit is contained in:
parent
04fd535409
commit
d9377c1ded
@ -1,5 +1,9 @@
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
|
||||
|
||||
// Windows does not have execinfo.h. For now, be conservative and
|
||||
// restrict the test to glibc.
|
||||
// REQUIRES: glibc-2.27
|
||||
|
||||
// Interceptor can cause use-after-free
|
||||
// (https://github.com/google/sanitizers/issues/321)
|
||||
// XFAIL: *
|
||||
|
@ -1,5 +1,9 @@
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
|
||||
|
||||
// Windows does not have execinfo.h. For now, be conservative and
|
||||
// restrict the test to glibc.
|
||||
// REQUIRES: glibc-2.27
|
||||
|
||||
// Test the backtrace_symbols() interceptor.
|
||||
|
||||
#include <assert.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user