GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: add platform timeout support for riscv64 · nodejs/node@b10e434

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/common
    • index.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/common/index.js‎

Copy file name to clipboardExpand all lines: test/common/index.js
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ const isOpenBSD = process.platform === 'openbsd';
143143
const isLinux = process.platform === 'linux';
144144
const isMacOS = process.platform === 'darwin';
145145
const isASan = process.config.variables.asan === 1;
146+
const isRiscv64 = process.arch === 'riscv64';
146147
const isDebug = process.features.debug;
147148
const isPi = (() => {
148149
try {
@@ -290,6 +291,10 @@ function platformTimeout(ms) {
290291
if (isPi)
291292
return multipliers.two * ms; // Raspberry Pi devices
292293

294+
if (isRiscv64) {
295+
return multipliers.four * ms;
296+
}
297+
293298
return ms;
294299
}
295300

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.