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 Jul 22, 2024
1 parent 4b8000c commit cad73da
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 cad73da

Please sign in to comment.