mirror of
https://github.com/golang/go
synced 2024-10-04 15:11:20 -06:00
net/http: fix TestLinuxSendfile on s390x
s390x doesn't have sendfile64 so apply the same fix as MIPS
(eebf7d27
) and just use sendfile.
Change-Id: If8fe2e974ed44a9883282430157c3545d5bd04bd
Reviewed-on: https://go-review.googlesource.com/21892
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
613ba6cda8
commit
b09c274bfa
@ -978,9 +978,9 @@ func TestLinuxSendfile(t *testing.T) {
|
|||||||
|
|
||||||
syscalls := "sendfile,sendfile64"
|
syscalls := "sendfile,sendfile64"
|
||||||
switch runtime.GOARCH {
|
switch runtime.GOARCH {
|
||||||
case "mips64", "mips64le":
|
case "mips64", "mips64le", "s390x":
|
||||||
// mips64 strace doesn't support sendfile64 and will error out
|
// strace on the above platforms doesn't support sendfile64
|
||||||
// if we specify that with `-e trace='.
|
// and will error out if we specify that with `-e trace='.
|
||||||
syscalls = "sendfile"
|
syscalls = "sendfile"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user