From 1c348978872fd56fbe03bb0b887e3be4f673a903 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 27 Jun 2013 14:24:07 +0000 Subject: [PATCH] [lsan] Fix flaky test. llvm-svn: 185079 --- compiler-rt/lib/lsan/lit_tests/TestCases/link_turned_off.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/link_turned_off.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/link_turned_off.cc index e744673dec3b..d16762bd35d3 100644 --- a/compiler-rt/lib/lsan/lit_tests/TestCases/link_turned_off.cc +++ b/compiler-rt/lib/lsan/lit_tests/TestCases/link_turned_off.cc @@ -1,7 +1,8 @@ // Test for disabling LSan at link-time. +// RUN: LSAN_BASE="use_stacks=0:use_registers=0" // RUN: %clangxx_lsan %s -o %t -// RUN: %t -// RUN: %t foo 2>&1 | FileCheck %s +// RUN: LSAN_OPTIONS=$LSAN_BASE %t +// RUN: LSAN_OPTIONS=$LSAN_BASE %t foo 2>&1 | FileCheck %s #include