2017-11-01 11:02:59 +08:00
|
|
|
// FIXME: This test infinite loops on darwin because it crashes
|
|
|
|
// printing a stack trace repeatedly
|
2018-09-05 01:08:47 +08:00
|
|
|
// FIXME: Disabled on Windows because of a crash (possibly related to above).
|
2019-05-01 01:58:59 +08:00
|
|
|
UNSUPPORTED: darwin, aarch64, windows
|
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
|
2019-05-01 01:58:59 +08:00
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}}
|
2017-11-01 11:02:59 +08:00
|
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
|
2019-05-01 01:58:59 +08:00
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}}
|
2017-11-01 11:02:59 +08:00
|
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
|
2019-05-01 01:58:59 +08:00
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}}
|
2017-11-01 11:02:59 +08:00
|
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
|
2019-05-01 01:58:59 +08:00
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}}
|
2017-11-01 11:02:59 +08:00
|
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
|
2019-05-01 01:58:59 +08:00
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}}
|
2017-11-01 11:02:59 +08:00
|
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
|
2019-05-01 01:58:59 +08:00
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}}
|
2017-11-01 11:02:59 +08:00
|
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
|
|
CHECK-NEXT: {{ +\#2 +}}
|