Skip to content

Commit

Permalink
test: fix timeout of test-heap-prof.js in riscv devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ArchFeh authored and danielleadams committed Jan 3, 2023
1 parent a110cac commit fe91ac1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,10 +909,11 @@ def GetTestStatus(self, context, sections, defs):


TIMEOUT_SCALEFACTOR = {
'arm' : { 'debug' : 8, 'release' : 3 }, # The ARM buildbots are slow.
'ia32' : { 'debug' : 4, 'release' : 1 },
'ppc' : { 'debug' : 4, 'release' : 1 },
's390' : { 'debug' : 4, 'release' : 1 } }
'arm' : { 'debug' : 8, 'release' : 3 }, # The ARM buildbots are slow.
'riscv64' : { 'debug' : 8, 'release' : 3 }, # The riscv devices are slow.
'ia32' : { 'debug' : 4, 'release' : 1 },
'ppc' : { 'debug' : 4, 'release' : 1 },
's390' : { 'debug' : 4, 'release' : 1 } }


class Context(object):
Expand Down
2 changes: 2 additions & 0 deletions tools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def GuessArchitecture():
return 'ppc'
elif id == 's390x':
return 's390'
elif id == 'riscv64':
return 'riscv64'
else:
id = platform.processor()
if id == 'powerpc':
Expand Down

0 comments on commit fe91ac1

Please sign in to comment.