Skip to content

Commit

Permalink
Add syscall for riscv64 architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosedp authored and williammartin committed Dec 6, 2019
1 parent 9869142 commit f66e896
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/remote/syscall_dup_linux_riscv64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// +build linux,riscv64

package remote

import "syscall"

// linux_riscv64 doesn't have syscall.Dup2 which ginkgo uses, so
// use the nearly identical syscall.Dup3 instead
func syscallDup(oldfd int, newfd int) (err error) {
return syscall.Dup3(oldfd, newfd, 0)
}
1 change: 1 addition & 0 deletions internal/remote/syscall_dup_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build !linux !arm64
// +build !linux !riscv64
// +build !windows
// +build !solaris

Expand Down

0 comments on commit f66e896

Please sign in to comment.