Skip to content

Commit

Permalink
test: add platform timeout support for riscv64
Browse files Browse the repository at this point in the history
PR-URL: #54591
Refs: #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>
  • Loading branch information
jakecastelli authored and aduh95 committed Sep 13, 2024
1 parent 8eaea0c commit 2e9aad1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -290,6 +291,10 @@ function platformTimeout(ms) {
if (isPi)
return multipliers.two * ms; // Raspberry Pi devices

if (isRiscv64) {
return multipliers.four * ms;
}

return ms;
}

Expand Down

0 comments on commit 2e9aad1

Please sign in to comment.