From 67e2b92e218f418b07e3c73c96bc753739e6510d Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 14 Oct 2016 10:51:25 +0200 Subject: [PATCH] test: enable node-module-version/test.js with debug Commit fdca79fbc0a797206fa690d51b8844ed4fd596d6 ("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 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- test/addons/node-module-version/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/addons/node-module-version/test.js b/test/addons/node-module-version/test.js index 1095027a2e9522..75d811de9cfe41 100644 --- a/test/addons/node-module-version/test.js +++ b/test/addons/node-module-version/test.js @@ -1,6 +1,6 @@ 'use strict'; -require('../../common'); +const common = require('../../common'); const assert = require('assert'); 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 ${process.versions.modules}.`); -assert.throws(() => require('./build/Release/binding'), re); +assert.throws(() => require(`./build/${common.buildType}/binding`), re);