diff options
| author | Reid Kleckner <rnk@google.com> | 2017-05-12 17:06:16 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2017-05-12 17:06:16 +0000 |
| commit | 999f74ad59d4f393014a051035b33383eb71c57a (patch) | |
| tree | 0b239279b60761ce24289887c8124d6a2d0185f9 | |
| parent | 5bc8543a365d4ffa8ae5eef037b9e39163a93f08 (diff) | |
| download | bcm5719-llvm-999f74ad59d4f393014a051035b33383eb71c57a.tar.gz bcm5719-llvm-999f74ad59d4f393014a051035b33383eb71c57a.zip | |
[ubsan] Enable debug info in test binaries
This fixes tests that use debug info to check ubsan stack traces. One
was XFAILd on Windows and the other was actively failing for weeks.
llvm-svn: 302924
| -rw-r--r-- | compiler-rt/test/ubsan/TestCases/TypeCheck/misaligned.cpp | 6 | ||||
| -rw-r--r-- | compiler-rt/test/ubsan/lit.common.cfg | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/compiler-rt/test/ubsan/TestCases/TypeCheck/misaligned.cpp b/compiler-rt/test/ubsan/TestCases/TypeCheck/misaligned.cpp index b3ff3588ba2..47133860474 100644 --- a/compiler-rt/test/ubsan/TestCases/TypeCheck/misaligned.cpp +++ b/compiler-rt/test/ubsan/TestCases/TypeCheck/misaligned.cpp @@ -1,8 +1,4 @@ -// FIXME: This test currently fails on Windows because we use the MSVC linker, -// which throws away DWARF debug info. -// XFAIL: win32 -// -// RUN: %clangxx -fsanitize=alignment -g %s -O3 -o %t +// RUN: %clangxx -fsanitize=alignment %s -O3 -o %t // RUN: %run %t l0 && %run %t s0 && %run %t r0 && %run %t m0 && %run %t f0 && %run %t n0 && %run %t u0 // RUN: %run %t l1 2>&1 | FileCheck %s --check-prefix=CHECK-LOAD --strict-whitespace // RUN: %run %t s1 2>&1 | FileCheck %s --check-prefix=CHECK-STORE diff --git a/compiler-rt/test/ubsan/lit.common.cfg b/compiler-rt/test/ubsan/lit.common.cfg index cb6a8e44291..0fa2e01a175 100644 --- a/compiler-rt/test/ubsan/lit.common.cfg +++ b/compiler-rt/test/ubsan/lit.common.cfg @@ -57,7 +57,7 @@ config.substitutions.append(('%env_ubsan_opts=', def build_invocation(compile_flags): return " " + " ".join([config.clang] + compile_flags) + " " -target_cflags = [get_required_attr(config, "target_cflags")] +target_cflags = [get_required_attr(config, "target_cflags")] + config.debug_info_flags clang_ubsan_cflags += target_cflags clang_ubsan_cxxflags = config.cxx_mode_flags + clang_ubsan_cflags |

