mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
test: fix Linux debug skip in SEA test guard
process.config.variables.is_debug is only populated by the GN build flow (tools/generate_config_gypi.py), so on the gyp builds used by CI the guard never fired and SEA tests ran on Linux debug builds against the original intent. Switch to process.config.target_defaults.default_configuration === 'Debug', matching the pattern used in test/common/index.js. Fixes: https://github.com/nodejs/node/issues/63749 Refs: https://github.com/nodejs/node/issues/61483 Signed-off-by: Hyunwoo Gu <realization0327@gmail.com> PR-URL: https://github.com/nodejs/node/pull/63751 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
fda8ee894e
commit
29f010fbb0
1 file changed
+1
-1
+1
-1
@@ -27,7 +27,7 @@ function skipIfSingleExecutableIsNotSupported() {
|
||||
if (!['darwin', 'win32', 'linux'].includes(process.platform))
|
||||
common.skip(`Unsupported platform ${process.platform}.`);
|
||||
|
||||
if (process.platform === 'linux' && process.config.variables.is_debug === 1)
|
||||
if (process.platform === 'linux' && common.isDebug)
|
||||
common.skip('Running the resultant binary fails with `Couldn\'t read target executable"`.');
|
||||
|
||||
if (process.config.variables.node_shared)
|
||||
|
||||
Reference in new issue
Block a user