summaryrefslogtreecommitdiff
path: root/test/lsan/TestCases/register_root_region.cc
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2017-04-18 20:56:56 +0000
committerFrancis Ricci <francisjricci@gmail.com>2017-04-18 20:56:56 +0000
commit73ac02fff7ce39a39f5228acb9ae14a9b79ebee6 (patch)
treecc6f52ad5872ee80d627d58586586b61b19785fb /test/lsan/TestCases/register_root_region.cc
parent385d9f6d5abb6b2d4ea27e59ac1e7b0e20d54f7c (diff)
Allow for setting of global platform-specific lsan options in the test suite
Reviewers: kubamracek, alekseyshl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D32131 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@300592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lsan/TestCases/register_root_region.cc')
-rw-r--r--test/lsan/TestCases/register_root_region.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lsan/TestCases/register_root_region.cc b/test/lsan/TestCases/register_root_region.cc
index a63b0cc62..6e3c8c1ce 100644
--- a/test/lsan/TestCases/register_root_region.cc
+++ b/test/lsan/TestCases/register_root_region.cc
@@ -1,9 +1,9 @@
// Test for __lsan_(un)register_root_region().
// RUN: LSAN_BASE="detect_leaks=1:use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE %run %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE not %run %t foo 2>&1 | FileCheck %s
-// RUN: LSAN_OPTIONS=$LSAN_BASE:use_root_regions=0 not %run %t 2>&1 | FileCheck %s
+// RUN: %env_lsan_opts=$LSAN_BASE %run %t
+// RUN: %env_lsan_opts=$LSAN_BASE not %run %t foo 2>&1 | FileCheck %s
+// RUN: %env_lsan_opts=$LSAN_BASE:use_root_regions=0 not %run %t 2>&1 | FileCheck %s
#include <assert.h>
#include <stdio.h>