[memprof] Change test output redirection to enable it to run on Windows
authorAndrew Ng <andrew.ng@sony.com>
Fri, 20 Jan 2023 15:04:38 +0000 (15:04 +0000)
committerAndrew Ng <andrew.ng@sony.com>
Mon, 30 Jan 2023 10:40:58 +0000 (10:40 +0000)
Differential Revision: https://reviews.llvm.org/D142225

llvm/test/tools/llvm-profdata/memprof-pic.test

index 1df2637..f993c44 100644 (file)
@@ -36,5 +36,5 @@ clang -fuse-ld=lld -Wl,--no-rosegment -gmlt -fdebug-info-for-profiling \
 env MEMPROF_OPTIONS=log_path=stdout ./pic.memprofexe > pic.memprofraw
 ```
 
-RUN: not llvm-profdata show --memory %p/Inputs/pic.memprofraw --profiled-binary %p/Inputs/pic.memprofexe -o - |& FileCheck %s
+RUN: not llvm-profdata show --memory %p/Inputs/pic.memprofraw --profiled-binary %p/Inputs/pic.memprofexe -o - 2>&1 | FileCheck %s
 CHECK: Unsupported position independent code