forked from OSchip/llvm-project
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:
parent
ece6d7bf2e
commit
9ef4243824
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue