Skip to content

Commit

Permalink
test: skip sea tests in large debug builds
Browse files Browse the repository at this point in the history
In debug builds, the node binary could exceed 2GB and can not be read by
postject.

PR-URL: #53918
Refs: nodejs/reliability#922
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
  • Loading branch information
legendecas authored and targos committed Jul 28, 2024
1 parent c08736b commit 33e406e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/common/sea.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ function skipIfSingleExecutableIsNotSupported() {
common.skip('UndefinedBehavior Sanitizer is not supported');
}

try {
readFileSync(process.execPath);
} catch (e) {
if (e.code === 'ERR_FS_FILE_TOO_LARGE') {
common.skip('The Node.js binary is too large to be supported by postject');
}
}

tmpdir.refresh();

// The SEA tests involve making a copy of the executable and writing some fixtures
Expand Down

0 comments on commit 33e406e

Please sign in to comment.