Skip to content

Commit 2e69e5f

Browse files
legendecasmarco-ippolito
authored andcommitted
test: skip sea tests in large debug builds
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]>
1 parent 4c36d6c commit 2e69e5f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/common/sea.js

+8
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ function skipIfSingleExecutableIsNotSupported() {
5050
common.skip('UndefinedBehavior Sanitizer is not supported');
5151
}
5252

53+
try {
54+
readFileSync(process.execPath);
55+
} catch (e) {
56+
if (e.code === 'ERR_FS_FILE_TOO_LARGE') {
57+
common.skip('The Node.js binary is too large to be supported by postject');
58+
}
59+
}
60+
5361
tmpdir.refresh();
5462

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

0 commit comments

Comments
 (0)