mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
test: replaces fixturesDir with fixtures methods
PR-URL: https://github.com/nodejs/node/pull/15817 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
64560cf08c
commit
cfe14eed9f
@ -20,12 +20,13 @@
|
||||
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
require('../common');
|
||||
const { fixturesDir } = require('../common/fixtures');
|
||||
const assert = require('assert');
|
||||
const exec = require('child_process').exec;
|
||||
const { exec } = require('child_process');
|
||||
|
||||
const cmd =
|
||||
`"${process.execPath}" "${common.fixturesDir}/test-regress-GH-4015.js"`;
|
||||
`"${process.execPath}" "${fixturesDir}/test-regress-GH-4015.js"`;
|
||||
|
||||
exec(cmd, function(err, stdout, stderr) {
|
||||
assert(/RangeError: Maximum call stack size exceeded/.test(stderr));
|
||||
|
Loading…
Reference in New Issue
Block a user