Skip to content

Commit f66e896

Browse files
carlosedpwilliammartin
authored andcommitted
Add syscall for riscv64 architecture
1 parent 9869142 commit f66e896

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// +build linux,riscv64
2+
3+
package remote
4+
5+
import "syscall"
6+
7+
// linux_riscv64 doesn't have syscall.Dup2 which ginkgo uses, so
8+
// use the nearly identical syscall.Dup3 instead
9+
func syscallDup(oldfd int, newfd int) (err error) {
10+
return syscall.Dup3(oldfd, newfd, 0)
11+
}

internal/remote/syscall_dup_unix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// +build !linux !arm64
2+
// +build !linux !riscv64
23
// +build !windows
34
// +build !solaris
45

0 commit comments

Comments
 (0)