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: https://github.com/nodejs/node/pull/53918 Refs: https://github.com/nodejs/reliability/issues/922 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
parent
4b8000c66c
commit
cad73dadba
@ -50,6 +50,14 @@ function skipIfSingleExecutableIsNotSupported() {
|
|||||||
common.skip('UndefinedBehavior Sanitizer is not supported');
|
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();
|
tmpdir.refresh();
|
||||||
|
|
||||||
// The SEA tests involve making a copy of the executable and writing some fixtures
|
// The SEA tests involve making a copy of the executable and writing some fixtures
|
||||||
|
Loading…
x
Reference in New Issue
Block a user