From 046b3ffd27205f5aa9ae5e0ad970bdad146baccc Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 3 Sep 2023 20:49:50 -0700 Subject: [PATCH] tests: remove gratuitous use of `tee` Replace the use of `tee` with proper redirection for the output. This reduces the dependency on Unix tools for portability. --- test/Macros/macro_plugin_basic.swift | 4 ++-- test/Macros/macro_plugin_error.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Macros/macro_plugin_basic.swift b/test/Macros/macro_plugin_basic.swift index 9213d3b2a3c58..79e539a0c6513 100644 --- a/test/Macros/macro_plugin_basic.swift +++ b/test/Macros/macro_plugin_basic.swift @@ -17,7 +17,7 @@ // RUN: -load-plugin-executable %t/mock-plugin#TestPlugin \ // RUN: -module-name MyApp \ // RUN: %t/test.swift \ -// RUN: 2>&1 | tee %t/macro-expansions.txt +// RUN: > %t/macro-expansions.txt 2>&1 // RUN: %FileCheck -strict-whitespace %s < %t/macro-expansions.txt @@ -28,7 +28,7 @@ // RUN: -Rmacro-loading \ // RUN: -module-name MyApp \ // RUN: %t/test.swift \ -// RUN: 2>&1 | tee %t/macro-loading.txt +// RUN: > %t/macro-loading.txt 2>&1 // RUN: %FileCheck -check-prefix=DIAGS %s < %t/macro-loading.txt diff --git a/test/Macros/macro_plugin_error.swift b/test/Macros/macro_plugin_error.swift index ebab709d4798c..93668f03fc575 100644 --- a/test/Macros/macro_plugin_error.swift +++ b/test/Macros/macro_plugin_error.swift @@ -17,7 +17,7 @@ // RUN: -load-plugin-executable %t/mock-plugin#TestPlugin \ // RUN: -module-name MyApp \ // RUN: %t/test.swift \ -// RUN: 2>&1 | tee %t/macro-expansions.txt +// RUN: > %t/macro-expansions.txt 2>&1 // RUN: %FileCheck -strict-whitespace %s < %t/macro-expansions.txt