Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion test/parallel/test-process-execve-no-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ if (!existsSync(executable)) {
skip(executable + ' binary is not available');
}

process.execve(executable);
// The binary may need `LD_LIBRARY_PATH` or equivalent set to run.
// The assumption here is that if `node` was configured to link to
// any external libraries then the test binary was as well.
if (process.config.target_defaults.libraries.length > 0) {
process.execve(executable, undefined, process.env);
} else {
process.execve(executable);
}
// If process.execve succeeds, this should never be executed.
fail('process.execve failed');
Loading