@@ -203,6 +203,12 @@ export class TestRunner {
203
203
: path . join ( os . tmpdir ( ) , `vscodemkfifo-${ Date . now ( ) } ` ) ;
204
204
205
205
await TemporaryFolder . withNamedTemporaryFile ( fifoPipePath , async ( ) => {
206
+ // macOS/Linux require us to create the named pipe before we use it.
207
+ // Windows just lets us communicate by specifying a pipe path without any ceremony.
208
+ if ( process . platform !== "win32" ) {
209
+ await execFile ( "mkfifo" , [ fifoPipePath ] , undefined , this . folderContext ) ;
210
+ }
211
+
206
212
const testBuildConfig =
207
213
await LaunchConfigurations . createLaunchConfigurationForSwiftTesting (
208
214
this . testArgs . swiftTestArgs ,
@@ -736,7 +742,6 @@ class LaunchConfigurations {
736
742
const testList = args . join ( "," ) ;
737
743
738
744
if ( process . platform === "darwin" ) {
739
- await execFile ( "mkfifo" , [ fifoPipePath ] , undefined , folderContext ) ;
740
745
const testBuildConfig = createSwiftTestConfiguration ( folderContext , fifoPipePath , true ) ;
741
746
if ( testBuildConfig === null ) {
742
747
return null ;
@@ -752,10 +757,6 @@ class LaunchConfigurations {
752
757
753
758
return testBuildConfig ;
754
759
} else {
755
- if ( process . platform !== "win32" ) {
756
- await execFile ( "mkfifo" , [ fifoPipePath ] , undefined , folderContext ) ;
757
- }
758
-
759
760
const testBuildConfig = createSwiftTestConfiguration ( folderContext , fifoPipePath , true ) ;
760
761
if ( testBuildConfig === null ) {
761
762
return null ;
0 commit comments