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 <yagiz@nizipli.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
  • Loading branch information
legendecas authored and RafaelGSS committed Aug 5, 2024
1 parent 6b35994 commit 7e8a609
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 7e8a609

Please sign in to comment.