Skip to content

Commit 5697da1

Browse files
committed
add extension to make it executable
1 parent bb1c3b9 commit 5697da1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/test/shared/utilities/testUtils.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { createExecutableFile, createTestWorkspaceFolder, envWithNewPath, readEn
77
import path from 'path'
88
import { ChildProcess } from '../../../shared/utilities/processUtils'
99
import { fs } from '../../../shared'
10+
import { isWin } from '../../../shared/vscode/env'
1011

1112
describe('envWithNewPath', function () {
1213
it('gives current path with new PATH', function () {
@@ -30,7 +31,7 @@ describe('writeEnv', function () {
3031
describe('createExecutableFile', function () {
3132
it('creates a file that can be executes in a child process', async function () {
3233
const tempDir = await createTestWorkspaceFolder()
33-
const filePath = path.join(tempDir.uri.fsPath, 'exec')
34+
const filePath = path.join(tempDir.uri.fsPath, `exec${isWin() ? '.exe' : ''}`)
3435
await createExecutableFile(filePath, '')
3536

3637
const proc = new ChildProcess(filePath)

0 commit comments

Comments
 (0)