[asan] Tweak test output to diagnose buildbot failures.
// 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
