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.

llvm-svn: 271785
This commit is contained in:
Chandler Carruth 2016-06-04 08:45:32 +00:00
parent ece6d7bf2e
commit 9ef4243824
1 changed files with 5 additions and 1 deletions

View File

@ -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>