2017-11-01 11:02:59 +08:00
|
|
|
// FIXME: This test infinite loops on darwin because it crashes
|
|
|
|
// printing a stack trace repeatedly
|
2018-06-27 02:37:09 +08:00
|
|
|
UNSUPPORTED: darwin, aarch64
|
2017-11-01 11:02:59 +08:00
|
|
|
|
2018-03-28 00:40:20 +08:00
|
|
|
RUN: %cpp_compiler %S/TraceMallocThreadedTest.cpp -o \
|
2018-03-24 07:35:28 +08:00
|
|
|
RUN: %t-TraceMallocThreadedTest
|
2017-11-01 11:02:59 +08:00
|
|
|
|
2018-05-12 05:29:51 +08:00
|
|
|
RUN: %run %t-TraceMallocThreadedTest -trace_malloc=2 -runs=1 2>&1 | FileCheck %s
|
2017-11-01 11:02:59 +08:00
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9]+ 5639}}
|
|
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
|
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9]+ 5639}}
|
|
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
|
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9]+ 5639}}
|
|
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
|
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9]+ 5639}}
|
|
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
|
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9]+ 5639}}
|
|
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
|
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9]+ 5639}}
|
|
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
|
|
CHECK-NEXT: {{ +\#2 +}}
|