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 <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
  • Loading branch information
jakecastelli authored and aduh95 committed Sep 13, 2024
1 parent b875f2d commit b10e434
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 b10e434

Please sign in to comment.