| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0cf9d04 commit e55e08c
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,6 +6,7 @@ const uv = process.binding('uv'); | |||
| 6 | 6 | const fixtures = require('../common/fixtures'); | |
| 7 | 7 | ||
| 8 | 8 | const fixture = fixtures.path('exit.js'); | |
| 9 | + const execOpts = { encoding: 'utf8', shell: true }; | ||
| 9 | 10 | ||
| 10 | 11 | { | |
| 11 | 12 | execFile( | |
@@ -38,3 +39,10 @@ const fixture = fixtures.path('exit.js'); | |||
| 38 | 39 | child.kill(); | |
| 39 | 40 | child.emit('close', code, null); | |
| 40 | 41 | } | |
| 42 | + | ||
| 43 | + { | ||
| 44 | + // Verify the shell option works properly | ||
| 45 | + execFile(process.execPath, [fixture, 0], execOpts, common.mustCall((err) => { | ||
| 46 | + assert.ifError(err); | ||
| 47 | + })); | ||
| 48 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,6 +29,7 @@ const TIMER = 200; | |||
| 29 | 29 | const SLEEP = 2000; | |
| 30 | 30 | ||
| 31 | 31 | const start = Date.now(); | |
| 32 | + const execOpts = { encoding: 'utf8', shell: true }; | ||
| 32 | 33 | let err; | |
| 33 | 34 | let caught = false; | |
| 34 | 35 | ||
@@ -124,3 +125,8 @@ assert.strictEqual(ret, `${msg}\n`); | |||
| 124 | 125 | return true; | |
| 125 | 126 | }); | |
| 126 | 127 | } | |
| 128 | + | ||
| 129 | + // Verify the shell option works properly | ||
| 130 | + assert.doesNotThrow(() => { | ||
| 131 | + execFileSync(process.execPath, [], execOpts); | ||
| 132 | + }); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments