Skip to content

Commit 046b3ff

Browse files
committed
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.
1 parent d1eb74a commit 046b3ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/Macros/macro_plugin_basic.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// RUN: -load-plugin-executable %t/mock-plugin#TestPlugin \
1818
// RUN: -module-name MyApp \
1919
// RUN: %t/test.swift \
20-
// RUN: 2>&1 | tee %t/macro-expansions.txt
20+
// RUN: > %t/macro-expansions.txt 2>&1
2121

2222
// RUN: %FileCheck -strict-whitespace %s < %t/macro-expansions.txt
2323

@@ -28,7 +28,7 @@
2828
// RUN: -Rmacro-loading \
2929
// RUN: -module-name MyApp \
3030
// RUN: %t/test.swift \
31-
// RUN: 2>&1 | tee %t/macro-loading.txt
31+
// RUN: > %t/macro-loading.txt 2>&1
3232

3333
// RUN: %FileCheck -check-prefix=DIAGS %s < %t/macro-loading.txt
3434

test/Macros/macro_plugin_error.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// RUN: -load-plugin-executable %t/mock-plugin#TestPlugin \
1818
// RUN: -module-name MyApp \
1919
// RUN: %t/test.swift \
20-
// RUN: 2>&1 | tee %t/macro-expansions.txt
20+
// RUN: > %t/macro-expansions.txt 2>&1
2121

2222
// RUN: %FileCheck -strict-whitespace %s < %t/macro-expansions.txt
2323

0 commit comments

Comments
 (0)