[compiler-rt] r315479 - [asan] Tweak test output to diagnose buildbot failures.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 10:32:38 PDT 2017


Author: eugenis
Date: Wed Oct 11 10:32:38 2017
New Revision: 315479

URL: http://llvm.org/viewvc/llvm-project?rev=315479&view=rev
Log:
[asan] Tweak test output to diagnose buildbot failures.

Modified:
    compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/hard_rss_limit_mb_test.cc

Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/hard_rss_limit_mb_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/hard_rss_limit_mb_test.cc?rev=315479&r1=315478&r2=315479&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/hard_rss_limit_mb_test.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/hard_rss_limit_mb_test.cc Wed Oct 11 10:32:38 2017
@@ -2,9 +2,13 @@
 // RUN: %clangxx -O2 %s -o %t
 //
 // Run with limit should fail:
-// RUN: %env_tool_opts=hard_rss_limit_mb=100                           not %run %t 2>&1 | FileCheck %s
+// RUN: %env_tool_opts=hard_rss_limit_mb=100                           not %run %t >%t.log 2>&1
+// RUN: cat %t.log
+// RUN: cat %t.log | FileCheck %s
 // This run uses getrusage:
-// RUN: %env_tool_opts=hard_rss_limit_mb=100:can_use_proc_maps_statm=0 not %run %t 2>&1 | FileCheck %s
+// RUN: %env_tool_opts=hard_rss_limit_mb=100:can_use_proc_maps_statm=0 not %run %t >%t.log 2>&1
+// RUN: cat %t.log
+// RUN: cat %t.log | FileCheck %s
 //
 // Run w/o limit or with a large enough limit should pass:
 // RUN: %env_tool_opts=hard_rss_limit_mb=1000 %run %t




More information about the llvm-commits mailing list