[lsan] Fix flaky test.

llvm-svn: 185079
This commit is contained in:
Sergey Matveev 2013-06-27 14:24:07 +00:00
parent d2cd2d018f
commit 1c34897887
1 changed files with 3 additions and 2 deletions

View File

@ -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 <sanitizer/lsan_interface.h>