summaryrefslogtreecommitdiff
path: root/debian/patches/src_libgo_go_os_os_test.go.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-05-13 13:54:49 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-05-13 13:54:49 +0300
commit42156b5190f4fa150e1fab6777eb81e69d4db8c9 (patch)
tree3bf47de81cf1f89892789535a036d2d55d93a136 /debian/patches/src_libgo_go_os_os_test.go.diff
downloadgcc-9-debian/6.3.0-17.tar.gz
Imported gcc-6 (6.3.0-17)debian/6.3.0-17
Diffstat (limited to 'debian/patches/src_libgo_go_os_os_test.go.diff')
-rw-r--r--debian/patches/src_libgo_go_os_os_test.go.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/src_libgo_go_os_os_test.go.diff b/debian/patches/src_libgo_go_os_os_test.go.diff
new file mode 100644
index 0000000..24f79ea
--- /dev/null
+++ b/debian/patches/src_libgo_go_os_os_test.go.diff
@@ -0,0 +1,15 @@
+Index: gcc-6-6.2.1-4.1/src/libgo/go/os/os_test.go
+===================================================================
+--- gcc-6-6.2.1-4.1.orig/src/libgo/go/os/os_test.go
++++ gcc-6-6.2.1-4.1/src/libgo/go/os/os_test.go
+@@ -1192,8 +1192,9 @@ func TestSeek(t *testing.T) {
+ for i, tt := range tests {
+ 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 {
++ if e, ok := err.(*PathError); ok && e.Err == syscall.EINVAL || e.Err == syscall.EFBIG && tt.out > 1<<32 {
+ // Reiserfs rejects the big seeks.
++ // GNU rejects the big seeks, returns EFBIG
+ // https://golang.org/issue/91
+ break
+ }