mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: add platform timeout support for riscv64
PR-URL: https://github.com/nodejs/node/pull/54591 Refs: https://github.com/nodejs/node/issues/54499 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
parent
37834997ff
commit
a72c964b45
@ -143,6 +143,7 @@ const isOpenBSD = process.platform === 'openbsd';
|
||||
const isLinux = process.platform === 'linux';
|
||||
const isMacOS = process.platform === 'darwin';
|
||||
const isASan = process.config.variables.asan === 1;
|
||||
const isRiscv64 = process.arch === 'riscv64';
|
||||
const isDebug = process.features.debug;
|
||||
const isPi = (() => {
|
||||
try {
|
||||
@ -290,6 +291,10 @@ function platformTimeout(ms) {
|
||||
if (isPi)
|
||||
return multipliers.two * ms; // Raspberry Pi devices
|
||||
|
||||
if (isRiscv64) {
|
||||
return multipliers.four * ms;
|
||||
}
|
||||
|
||||
return ms;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user