[PATCH] D37765: [compiler-rt] Add test for not fully implemented dump_registers
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 12 23:35:14 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL313120: [compiler-rt] Add test for not fully implemented dump_registers (authored by vitalybuka).
Changed prior to commit:
https://reviews.llvm.org/D37765?vs=114899&id=114977#toc
Repository:
rL LLVM
https://reviews.llvm.org/D37765
Files:
compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/dump_registers.cc
Index: compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/dump_registers.cc
===================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/dump_registers.cc
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/dump_registers.cc
@@ -0,0 +1,20 @@
+// Check that sanitizer prints registers dump_registers on dump_registers=1
+// RUN: %clangxx %s -o %t
+// RUN: %env_tool_opts=dump_registers=0 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NODUMP
+// RUN: %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-DUMP
+//
+// FIXME: Implement.
+// UNSUPPORTED: asan
+// UNSUPPORTED: lsan
+// UNSUPPORTED: msan
+// UNSUPPORTED: tsan
+// UNSUPPORTED: ubsan
+
+#include <signal.h>
+
+int main() {
+ raise(SIGSEGV);
+ // CHECK-DUMP: Register values
+ // CHECK-NODUMP-NOT: Register values
+ return 0;
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37765.114977.patch
Type: text/x-patch
Size: 872 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170913/a78f8e4a/attachment.bin>
More information about the llvm-commits
mailing list