Skip to content

Commit f19f3b9

Browse files
authored
Ensure named pipe is created for swift-testing debug test runs (#816)
The named pipe to parse swift-testing test results was not being created when doing a debug run, preventing test results from being parsed.
1 parent 275ed7f commit f19f3b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/TestExplorer/TestRunner.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,12 @@ export class TestRunner {
662662
: path.join(os.tmpdir(), `vscodemkfifo-${Date.now()}`);
663663

664664
await TemporaryFolder.withNamedTemporaryFile(fifoPipePath, async () => {
665+
// macOS/Linux require us to create the named pipe before we use it.
666+
// Windows just lets us communicate by specifying a pipe path without any ceremony.
667+
if (process.platform !== "win32") {
668+
await execFile("mkfifo", [fifoPipePath], undefined, this.folderContext);
669+
}
670+
665671
if (this.testArgs.hasSwiftTestingTests) {
666672
const swiftTestBuildConfig =
667673
await LaunchConfigurations.createLaunchConfigurationForSwiftTesting(

0 commit comments

Comments
 (0)