summaryrefslogtreecommitdiff
path: root/test/lsan/TestCases/large_allocation_leak.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/lsan/TestCases/large_allocation_leak.cc')
-rw-r--r--test/lsan/TestCases/large_allocation_leak.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lsan/TestCases/large_allocation_leak.cc b/test/lsan/TestCases/large_allocation_leak.cc
index 9d5698c9f8a6..c3da932a41a4 100644
--- a/test/lsan/TestCases/large_allocation_leak.cc
+++ b/test/lsan/TestCases/large_allocation_leak.cc
@@ -1,8 +1,12 @@
// Test that LargeMmapAllocator's chunks aren't reachable via some internal data structure.
-// RUN: LSAN_BASE="report_objects=1:use_stacks=0:use_registers=0"
+// RUN: LSAN_BASE="detect_leaks=1:report_objects=1:use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
// RUN: LSAN_OPTIONS=$LSAN_BASE not %run %t 2>&1 | FileCheck %s
+// For 32 bit LSan it's pretty likely that large chunks are "reachable" from some
+// internal data structures (e.g. Glibc global data).
+// UNSUPPORTED: x86, arm
+
#include <stdio.h>
#include <stdlib.h>
#include "sanitizer_common/print_address.h"