[compiler-rt] r308925 - Splitting out test for Darwin for print-stack-trace:

George Karpenkov via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 24 13:35:20 PDT 2017


Author: george.karpenkov
Date: Mon Jul 24 13:35:20 2017
New Revision: 308925

URL: http://llvm.org/viewvc/llvm-project?rev=308925&view=rev
Log:
Splitting out test for Darwin for print-stack-trace:

New default symbolizer can not symbolize inlined function which appear
under -O3.

Added:
    compiler-rt/trunk/test/sanitizer_common/TestCases/Darwin/print-stack-trace.cc
      - copied, changed from r308922, compiler-rt/trunk/test/sanitizer_common/TestCases/print-stack-trace.cc
Modified:
    compiler-rt/trunk/test/sanitizer_common/TestCases/print-stack-trace.cc

Copied: compiler-rt/trunk/test/sanitizer_common/TestCases/Darwin/print-stack-trace.cc (from r308922, compiler-rt/trunk/test/sanitizer_common/TestCases/print-stack-trace.cc)
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/Darwin/print-stack-trace.cc?p2=compiler-rt/trunk/test/sanitizer_common/TestCases/Darwin/print-stack-trace.cc&p1=compiler-rt/trunk/test/sanitizer_common/TestCases/print-stack-trace.cc&r1=308922&r2=308925&rev=308925&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/print-stack-trace.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/Darwin/print-stack-trace.cc Mon Jul 24 13:35:20 2017
@@ -1,7 +1,5 @@
 // RUN: %clangxx -O0 %s -o %t && %env_tool_opts=stack_trace_format=DEFAULT %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx -O3 %s -o %t && %env_tool_opts=stack_trace_format=DEFAULT %run %t 2>&1 | FileCheck %s
 // RUN: %env_tool_opts=stack_trace_format='"frame:%n lineno:%l"' %run %t 2>&1 | FileCheck %s --check-prefix=CUSTOM
-// RUN: %env_tool_opts=symbolize_inline_frames=false:stack_trace_format=DEFAULT %run %t 2>&1 | FileCheck %s --check-prefix=NOINLINE
 
 #include <sanitizer/common_interface_defs.h>
 
@@ -19,6 +17,3 @@ int main() {
 
 // CUSTOM: frame:1 lineno:[[@LINE-11]]
 // CUSTOM: frame:2 lineno:[[@LINE-8]]
-
-// NOINLINE: #0 0x{{.*}} in __sanitizer_print_stack_trace
-// NOINLINE: #1 0x{{.*}} in main{{.*}}print-stack-trace.cc:[[@LINE-15]]

Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/print-stack-trace.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/print-stack-trace.cc?rev=308925&r1=308924&r2=308925&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/print-stack-trace.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/print-stack-trace.cc Mon Jul 24 13:35:20 2017
@@ -3,6 +3,8 @@
 // RUN: %env_tool_opts=stack_trace_format='"frame:%n lineno:%l"' %run %t 2>&1 | FileCheck %s --check-prefix=CUSTOM
 // RUN: %env_tool_opts=symbolize_inline_frames=false:stack_trace_format=DEFAULT %run %t 2>&1 | FileCheck %s --check-prefix=NOINLINE
 
+// UNSUPPORTED: darwin
+
 #include <sanitizer/common_interface_defs.h>
 
 static inline void FooBarBaz() {




More information about the llvm-commits mailing list