diff --git a/compiler-rt/test/asan/TestCases/Linux/print_memory_profile_test.cc b/compiler-rt/test/asan/TestCases/Linux/print_memory_profile_test.cc index 6bf78efc1fe9..3d616abe6fa0 100644 --- a/compiler-rt/test/asan/TestCases/Linux/print_memory_profile_test.cc +++ b/compiler-rt/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 #include