summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/Linux/print_memory_profile_test.cc
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-06-04 08:45:32 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-06-04 08:45:32 +0000
commit3cb3a8b7fa89f25276270ad2fba51af8e3e08e00 (patch)
treeae10b63ae14b93880b4e4df0560c61cd9768f57b /test/asan/TestCases/Linux/print_memory_profile_test.cc
parentc0e5043e485cee85b6f1562a124f41bba4e49604 (diff)
Fix the test for printing the memory profile. This fuctionality is only
available along side the leak checking, so use the REQUIRES for that. Also, use %run as other tests do when launching the built binary. This fixes check-asan for me on Linux and looks like it should fix the linux sanitizer bots as well. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@271785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/Linux/print_memory_profile_test.cc')
-rw-r--r--test/asan/TestCases/Linux/print_memory_profile_test.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/asan/TestCases/Linux/print_memory_profile_test.cc b/test/asan/TestCases/Linux/print_memory_profile_test.cc
index 6bf78efc1..3d616abe6 100644
--- a/test/asan/TestCases/Linux/print_memory_profile_test.cc
+++ b/test/asan/TestCases/Linux/print_memory_profile_test.cc
@@ -1,5 +1,9 @@
+// Printing memory profiling only works in the configuration where we can
+// detect leaks.
+// REQUIRES: leak-detection
+//
// RUN: %clangxx_asan %s -o %t
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#include <sanitizer/common_interface_defs.h>
#include <stdio.h>