aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-02-07 05:02:26 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-02-07 05:02:26 +0000
commit18591d3ee7c0e22c3f81340fbc0a54d5fb6912ca (patch)
treed0f4d6a3774f1a09f412653f74cb9a9545207d1d
parent4a3e25712f25271876e83dfafe8ff2df4f643df7 (diff)
downloadgcc-18591d3ee7c0e22c3f81340fbc0a54d5fb6912ca.zip
gcc-18591d3ee7c0e22c3f81340fbc0a54d5fb6912ca.tar.gz
gcc-18591d3ee7c0e22c3f81340fbc0a54d5fb6912ca.tar.bz2
os, syscall: Hurd fixes for a couple of tests
Based on patch by Svante Signell. Reviewed-on: https://go-review.googlesource.com/c/161520 From-SVN: r268605
-rw-r--r--gcc/go/gofrontend/MERGE2
-rw-r--r--libgo/go/os/os_test.go4
-rw-r--r--libgo/go/syscall/syscall_unix_test.go12
3 files changed, 12 insertions, 6 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index b7efb21..398a851 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-28b65174d9c9163f4ab2cfaf70dca646f1a7611f
+9b66264ed6adcf3fd215dbfd125c12b022b7280e
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
diff --git a/libgo/go/os/os_test.go b/libgo/go/os/os_test.go
index 98eba89..cf68cae 100644
--- a/libgo/go/os/os_test.go
+++ b/libgo/go/os/os_test.go
@@ -1336,6 +1336,10 @@ func TestSeek(t *testing.T) {
t.Logf("skipping test case #%d on nacl; https://golang.org/issue/21728", i)
continue
}
+ if runtime.GOOS == "hurd" && tt.out > 1<<32 {
+ t.Logf("skipping test case #%d on Hurd: file too large", i)
+ continue
+ }
off, err := f.Seek(tt.in, tt.whence)
if off != tt.out || err != nil {
if e, ok := err.(*PathError); ok && e.Err == syscall.EINVAL && tt.out > 1<<32 && runtime.GOOS == "linux" {
diff --git a/libgo/go/syscall/syscall_unix_test.go b/libgo/go/syscall/syscall_unix_test.go
index 085afb2..0341948 100644
--- a/libgo/go/syscall/syscall_unix_test.go
+++ b/libgo/go/syscall/syscall_unix_test.go
@@ -46,11 +46,13 @@ func _() {
// fcntl file locking structure and constants
var (
_ = syscall.Flock_t{
- Type: int16(0),
- Whence: int16(0),
- Start: int64(0),
- Len: int64(0),
- Pid: int32(0),
+ // Comment out the Type and Whence tests because
+ // on the Hurd they are int32, not int16.
+ // Type: int16(0),
+ // Whence: int16(0),
+ Start: int64(0),
+ Len: int64(0),
+ Pid: int32(0),
}
)
const (