1 // FIXME: This test infinite loops on darwin because it crashes
2 // printing a stack trace repeatedly
3 // FIXME: Disabled on Windows because of a crash (possibly related to above).
4 UNSUPPORTED: darwin, target=aarch64{{.*}}, target={{.*windows.*}}
6 RUN: %cpp_compiler %S/TraceMallocThreadedTest.cpp -o \
7 RUN: %t-TraceMallocThreadedTest
9 RUN: %run %t-TraceMallocThreadedTest -trace_malloc=2 -runs=1 2>&1 | FileCheck %s
10 CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}}
11 CHECK-NEXT: {{ +\#0 +}}
12 CHECK-NEXT: {{ +\#1 +}}
13 CHECK-NEXT: {{ +\#2 +}}
15 CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}}
16 CHECK-NEXT: {{ +\#0 +}}
17 CHECK-NEXT: {{ +\#1 +}}
18 CHECK-NEXT: {{ +\#2 +}}
20 CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}}
21 CHECK-NEXT: {{ +\#0 +}}
22 CHECK-NEXT: {{ +\#1 +}}
23 CHECK-NEXT: {{ +\#2 +}}
25 CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}}
26 CHECK-NEXT: {{ +\#0 +}}
27 CHECK-NEXT: {{ +\#1 +}}
28 CHECK-NEXT: {{ +\#2 +}}
30 CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}}
31 CHECK-NEXT: {{ +\#0 +}}
32 CHECK-NEXT: {{ +\#1 +}}
33 CHECK-NEXT: {{ +\#2 +}}
35 CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}}
36 CHECK-NEXT: {{ +\#0 +}}
37 CHECK-NEXT: {{ +\#1 +}}
38 CHECK-NEXT: {{ +\#2 +}}