Skip to content

Commit 3607684

Browse files
kxxtRafaelGSS
authored andcommitted
test: fix test-strace-openat-openssl for RISC-V
Recent architectures like RISC-V does not support open syscall, which will cause strace to fail and thus test failure. AssertionError [ERR_ASSERTION]: strace: invalid system call 'open' This patch disables tracing open syscall for RISC-V in the test to fix the test failure. PR-URL: #60588 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com>
1 parent 5a976cb commit 3607684

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎test/parallel/test-strace-openat-openssl.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ if (spawnSync('strace').error !== undefined) {
1919
constallowedOpenCalls=newSet([
2020
'/etc/ssl/openssl.cnf',
2121
]);
22+
constsyscalls=['openat'];
23+
if(process.arch!=='riscv64'&&process.arch!=='riscv32'){
24+
syscalls.push('open');
25+
}
2226
conststrace=spawn('strace',[
2327
'-f','-ff',
24-
'-e','trace=open,openat',
28+
'-e',`trace=${syscalls.join(',')}`,
2529
'-s','512',
2630
'-D',process.execPath,'-e','require("crypto")',
2731
]);

0 commit comments

Comments
 (0)