Skip to content

Commit 05f8d93

Browse files
committed
Eliminate a subshell from a test so test works on windows.
1 parent ae83503 commit 05f8d93

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/ModuleInterface/ossa-modules/different-modes-have-different-hashes.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
// RUN: diff -u %t/MCP.default/*.swiftmodule %t/MCP.default/old/*.swiftmodule
8181
//
8282
// But their actual names should be different since the hash is in the file name.
83-
// RUN: (cd %t/MCP.default && ls *.swiftmodule) > %t/MCP.default/firstFile
84-
// RUN: (cd %t/MCP.default/old && ls *.swiftmodule) > %t/MCP.default/secondFile
83+
// RUN: cd %t/MCP.default && ls *.swiftmodule > %t/MCP.default/firstFile
84+
// RUN: cd %t/MCP.default/old && ls *.swiftmodule > %t/MCP.default/secondFile
8585
// RUN: not diff -u %t/MCP.default/firstFile %t/MCP.default/secondFile
8686

8787
///////////
@@ -106,8 +106,8 @@
106106
// RUN: diff -u %t/MCP.Onone/*.swiftmodule %t/MCP.Onone/old/*.swiftmodule
107107
//
108108
// But their name should be different
109-
// RUN: (cd %t/MCP.Onone && ls *.swiftmodule) > %t/MCP.Onone/firstFile
110-
// RUN: (cd %t/MCP.Onone/old && ls *.swiftmodule) > %t/MCP.Onone/secondFile
109+
// RUN: cd %t/MCP.Onone && ls *.swiftmodule > %t/MCP.Onone/firstFile
110+
// RUN: cd %t/MCP.Onone/old && ls *.swiftmodule > %t/MCP.Onone/secondFile
111111
// RUN: not diff -u %t/MCP.Onone/firstFile %t/MCP.Onone/secondFile
112112

113113
///////////
@@ -134,8 +134,8 @@
134134
// RUN: not diff -u %t/MCP.Osize/*.swiftmodule %t/MCP.Osize/old/*.swiftmodule
135135
//
136136
// And their name should be different
137-
// RUN: (cd %t/MCP.Osize && ls *.swiftmodule) > %t/MCP.Osize/firstFile
138-
// RUN: (cd %t/MCP.Osize/old && ls *.swiftmodule) > %t/MCP.Osize/secondFile
137+
// RUN: cd %t/MCP.Osize && ls *.swiftmodule > %t/MCP.Osize/firstFile
138+
// RUN: cd %t/MCP.Osize/old && ls *.swiftmodule > %t/MCP.Osize/secondFile
139139
// RUN: not diff -u %t/MCP.Osize/firstFile %t/MCP.Osize/secondFile
140140

141141
///////
@@ -162,8 +162,8 @@
162162
// RUN: not diff -u %t/MCP.O/*.swiftmodule %t/MCP.O/old/*.swiftmodule
163163
//
164164
// And their name should be different
165-
// RUN: (cd %t/MCP.O && ls *.swiftmodule) > %t/MCP.O/firstFile
166-
// RUN: (cd %t/MCP.O/old && ls *.swiftmodule) > %t/MCP.O/secondFile
165+
// RUN: cd %t/MCP.O && ls *.swiftmodule > %t/MCP.O/firstFile
166+
// RUN: cd %t/MCP.O/old && ls *.swiftmodule > %t/MCP.O/secondFile
167167
// RUN: not diff -u %t/MCP.O/firstFile %t/MCP.O/secondFile
168168

169169
@_fixed_layout

0 commit comments

Comments
 (0)