[compiler-rt] r271785 - Fix the test for printing the memory profile. This fuctionality is only

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 4 01:45:32 PDT 2016


Author: chandlerc
Date: Sat Jun  4 03:45:32 2016
New Revision: 271785

URL: http://llvm.org/viewvc/llvm-project?rev=271785&view=rev
Log:
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.

Modified:
    compiler-rt/trunk/test/asan/TestCases/Linux/print_memory_profile_test.cc

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/print_memory_profile_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/print_memory_profile_test.cc?rev=271785&r1=271784&r2=271785&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/print_memory_profile_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/print_memory_profile_test.cc Sat Jun  4 03:45:32 2016
@@ -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>




More information about the llvm-commits mailing list