summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/trace-malloc.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Fuzzer/test/trace-malloc.test')
-rw-r--r--llvm/lib/Fuzzer/test/trace-malloc.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/test/trace-malloc.test b/llvm/lib/Fuzzer/test/trace-malloc.test
index 25694cc2de5..9b14ba2e51f 100644
--- a/llvm/lib/Fuzzer/test/trace-malloc.test
+++ b/llvm/lib/Fuzzer/test/trace-malloc.test
@@ -1,4 +1,6 @@
-RUN: LLVMFuzzer-TraceMallocTest -seed=1 -trace_malloc=1 -runs=10000 2>&1 | FileCheck %s
+RUN: %cpp_compiler %S/TraceMallocTest.cpp -o %t-LLVMFuzzer-TraceMallocTest
+
+RUN: %t-LLVMFuzzer-TraceMallocTest -seed=1 -trace_malloc=1 -runs=10000 2>&1 | FileCheck %s
CHECK-DAG: MallocFreeTracer: STOP 0 0 (same)
CHECK-DAG: MallocFreeTracer: STOP 0 1 (DIFFERENT)
CHECK-DAG: MallocFreeTracer: STOP 1 0 (DIFFERENT)
OpenPOWER on IntegriCloud