From f716931bb27aebb67a0a1b79e84bf4c11d951694 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 15 Sep 2017 00:02:30 +0000 Subject: [PATCH] [lsan] Disable clang-format on few RUN: statements llvm-svn: 313321 --- compiler-rt/test/sanitizer_common/TestCases/Linux/assert.cc | 4 ++++ compiler-rt/test/sanitizer_common/TestCases/Linux/ill.cc | 4 ++++ .../TestCases/Posix/dump_instruction_bytes.cc | 5 ++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/assert.cc b/compiler-rt/test/sanitizer_common/TestCases/Linux/assert.cc index 7422d400a811..51a9163f4c58 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Linux/assert.cc +++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/assert.cc @@ -1,8 +1,12 @@ // Test the handle_abort option. + +// clang-format off // RUN: %clang %s -o %t // RUN: not --crash %run %t 2>&1 | FileCheck --check-prefix=CHECK0 %s // RUN: %env_tool_opts=handle_abort=0 not --crash %run %t 2>&1 | FileCheck --check-prefix=CHECK0 %s // RUN: %env_tool_opts=handle_abort=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK1 %s +// clang-format on + // FIXME: implement in other sanitizers, not just asan. // XFAIL: msan // XFAIL: lsan diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/ill.cc b/compiler-rt/test/sanitizer_common/TestCases/Linux/ill.cc index 2707fc9af715..030da337616c 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Linux/ill.cc +++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/ill.cc @@ -1,8 +1,12 @@ // Test the handle_sigill option. + +// clang-format off // RUN: %clang %s -o %t -O1 // RUN: not --crash %run %t 2>&1 | FileCheck --check-prefix=CHECK0 %s // RUN: %env_tool_opts=handle_sigill=0 not --crash %run %t 2>&1 | FileCheck --check-prefix=CHECK0 %s // RUN: %env_tool_opts=handle_sigill=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK1 %s +// clang-format on + // FIXME: implement in other sanitizers, not just asan. // XFAIL: msan // XFAIL: lsan diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/dump_instruction_bytes.cc b/compiler-rt/test/sanitizer_common/TestCases/Posix/dump_instruction_bytes.cc index 408da6bb6ce1..b5e45c30701e 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Posix/dump_instruction_bytes.cc +++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/dump_instruction_bytes.cc @@ -1,9 +1,12 @@ // Check that sanitizer prints the faulting instruction bytes on // dump_instruction_bytes=1 + +// clang-format off // RUN: %clangxx %s -o %t // RUN: %env_tool_opts=dump_instruction_bytes=1 not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-DUMP // RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NODUMP -// +// clang-format on + // REQUIRES: x86-target-arch // XFAIL: lsan, msan, tsan, ubsan