|
14 | 14 | var envCopy = JSON.parse(JSON.stringify(process.env));
|
15 | 15 | envCopy.TEST_INIT = 1;
|
16 | 16 |
|
17 |
| - child.exec(process.execPath + ' test-init', {env: envCopy}, |
| 17 | + child.exec('"' + process.execPath + '" test-init', {env: envCopy}, |
18 | 18 | function(err, stdout, stderr) {
|
19 | 19 | assert.equal(stdout, 'Loaded successfully!',
|
20 | 20 | '`node test-init` failed!');
|
21 | 21 | });
|
22 |
| - child.exec(process.execPath + ' test-init.js', {env: envCopy}, |
| 22 | + child.exec('"' + process.execPath + '" test-init.js', {env: envCopy}, |
23 | 23 | function(err, stdout, stderr) {
|
24 | 24 | assert.equal(stdout, 'Loaded successfully!',
|
25 | 25 | '`node test-init.js` failed!');
|
|
28 | 28 | // test-init-index is in fixtures dir as requested by ry, so go there
|
29 | 29 | process.chdir(common.fixturesDir);
|
30 | 30 |
|
31 |
| - child.exec(process.execPath + ' test-init-index', {env: envCopy}, |
| 31 | + child.exec('"' + process.execPath + '" test-init-index', {env: envCopy}, |
32 | 32 | function(err, stdout, stderr) {
|
33 | 33 | assert.equal(stdout, 'Loaded successfully!',
|
34 | 34 | '`node test-init-index failed!');
|
|
39 | 39 | // expected in node
|
40 | 40 | process.chdir(common.fixturesDir + '/test-init-native/');
|
41 | 41 |
|
42 |
| - child.exec(process.execPath + ' fs', {env: envCopy}, |
| 42 | + child.exec('"' + process.execPath + '" fs', {env: envCopy}, |
43 | 43 | function(err, stdout, stderr) {
|
44 | 44 | assert.equal(stdout, 'fs loaded successfully',
|
45 | 45 | '`node fs` failed!');
|
|
0 commit comments