| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -114,7 +114,7 @@ function runTestFile(path) { | |||
| 114 | 114 | err = error; | |
| 115 | 115 | }); | |
| 116 | 116 | ||
| 117 | - const { 0: { code, signal }, 1: stdout, 2: stderr } = await SafePromiseAll([ | ||
| 117 | + const { 0: { 0: code, 1: signal }, 1: stdout, 2: stderr } = await SafePromiseAll([ | ||
| 118 | 118 | once(child, 'exit', { signal: t.signal }), | |
| 119 | 119 | child.stdout.toArray({ signal: t.signal }), | |
| 120 | 120 | child.stderr.toArray({ signal: t.signal }), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | + const fixtures = require('../common/fixtures'); | ||
| 3 | 4 | const assert = require('assert'); | |
| 4 | 5 | const { spawnSync } = require('child_process'); | |
| 5 | 6 | const { setTimeout } = require('timers/promises'); | |
@@ -28,6 +29,10 @@ if (process.argv[2] === 'child') { | |||
| 28 | 29 | assert.strictEqual(child.status, 0); | |
| 29 | 30 | assert.strictEqual(child.signal, null); | |
| 30 | 31 | ||
| 32 | + child = spawnSync(process.execPath, ['--test', fixtures.path('test-runner', 'subdir', 'subdir_test.js')]); | ||
| 33 | + assert.strictEqual(child.status, 0); | ||
| 34 | + assert.strictEqual(child.signal, null); | ||
| 35 | + | ||
| 31 | 36 | child = spawnSync(process.execPath, [__filename, 'child', 'fail']); | |
| 32 | 37 | assert.strictEqual(child.status, 1); | |
| 33 | 38 | assert.strictEqual(child.signal, null); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments