Skip to content

Commit fe91ac1

Browse files
Yu Gudanielleadams
Yu Gu
authored andcommitted
test: fix timeout of test-heap-prof.js in riscv devices
In riscv hardware test-heap-prof.js caused timeout in test. Because of weak performance. So there is a need to set TIMEOUT_SCALEFACTOR for riscv too. Fixes: #40152 PR-URL: #42674 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent a110cac commit fe91ac1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

tools/test.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -909,10 +909,11 @@ def GetTestStatus(self, context, sections, defs):
909909

910910

911911
TIMEOUT_SCALEFACTOR = {
912-
'arm' : { 'debug' : 8, 'release' : 3 }, # The ARM buildbots are slow.
913-
'ia32' : { 'debug' : 4, 'release' : 1 },
914-
'ppc' : { 'debug' : 4, 'release' : 1 },
915-
's390' : { 'debug' : 4, 'release' : 1 } }
912+
'arm' : { 'debug' : 8, 'release' : 3 }, # The ARM buildbots are slow.
913+
'riscv64' : { 'debug' : 8, 'release' : 3 }, # The riscv devices are slow.
914+
'ia32' : { 'debug' : 4, 'release' : 1 },
915+
'ppc' : { 'debug' : 4, 'release' : 1 },
916+
's390' : { 'debug' : 4, 'release' : 1 } }
916917

917918

918919
class Context(object):

tools/utils.py

+2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ def GuessArchitecture():
9797
return 'ppc'
9898
elif id == 's390x':
9999
return 's390'
100+
elif id == 'riscv64':
101+
return 'riscv64'
100102
else:
101103
id = platform.processor()
102104
if id == 'powerpc':

0 commit comments

Comments
 (0)