Browse Source

test: enable node-module-version/test.js with debug

Commit fdca79fbc0 ("test: enable addons
test to pass with debug build") enabled the addons tests to pass when
the build type is of type debug (configure --debug).

test/addons/node-module-version/test.js was recently added and expects
the the build type to be of type Release (like most of the others until
recently). This commit allows this test to pass when the build type if
of type debug.

PR-URL: https://github.com/nodejs/node/pull/9093
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
v6
Daniel Bevenius 8 years ago
parent
commit
9bb250ba34
  1. 4
      test/addons/node-module-version/test.js

4
test/addons/node-module-version/test.js

@ -1,6 +1,6 @@
'use strict'; 'use strict';
require('../../common'); const common = require('../../common');
const assert = require('assert'); const assert = require('assert');
const re = new RegExp( const re = new RegExp(
@ -8,4 +8,4 @@ const re = new RegExp(
'NODE_MODULE_VERSION 42. This version of Node.js requires\n' + 'NODE_MODULE_VERSION 42. This version of Node.js requires\n' +
`NODE_MODULE_VERSION ${process.versions.modules}.`); `NODE_MODULE_VERSION ${process.versions.modules}.`);
assert.throws(() => require('./build/Release/binding'), re); assert.throws(() => require(`./build/${common.buildType}/binding`), re);

Loading…
Cancel
Save