File: 0001-Skip-failed-tests.patch

package info (click to toggle)
golang-github-vishvananda-netlink 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 1,648 kB
  • sloc: makefile: 25
file content (72 lines) | stat: -rw-r--r-- 1,694 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
From: Shengjing Zhu <zhsj@debian.org>
Date: Tue, 22 Feb 2022 00:39:13 +0800
Subject: Skip failed tests

on buildd:

RUN   TestSocketDiagTCPInfo
socket_test.go:68: no such file or directory
FAIL: TestSocketDiagTCPInfo (0.00s)

RUN   TestHandleCreateClose
handle_test.go:25: protocol not supported
FAIL: TestHandleCreateClose (0.01s)

RUN   TestHandleTimeout
handle_test.go:120: protocol not supported
FAIL: TestHandleTimeout (0.00s)

RUN   TestHandleReceiveBuffer
handle_test.go:138: protocol not supported
FAIL: TestHandleReceiveBuffer (0.00s)

Forwarded: not-needed
---
 handle_test.go | 2 +-
 socket_test.go | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

--- a/handle_test.go
+++ b/handle_test.go
@@ -1,4 +1,4 @@
-// +build linux
+// +build ignore
 
 package netlink
 
--- a/socket_test.go
+++ b/socket_test.go
@@ -131,6 +131,7 @@
 }
 
 func TestSocketDiagTCPInfo(t *testing.T) {
+	t.Skip("broken on buildd")
 	Family4 := uint8(syscall.AF_INET)
 	Family6 := uint8(syscall.AF_INET6)
 	families := []uint8{Family4, Family6}
@@ -149,6 +150,7 @@
 }
 
 func TestSocketDiagUDPnfo(t *testing.T) {
+	t.Skip("broken on buildd")
 	for _, want := range []uint8{syscall.AF_INET, syscall.AF_INET6} {
 		result, err := SocketDiagUDPInfo(want)
 		if err != nil {
@@ -164,6 +166,7 @@
 }
 
 func TestUnixSocketDiagInfo(t *testing.T) {
+	t.Skip("broken on buildd")
 	want := syscall.AF_UNIX
 	result, err := UnixSocketDiagInfo()
 	if err != nil {
--- a/socket_xdp_linux_test.go
+++ b/socket_xdp_linux_test.go
@@ -11,6 +11,7 @@
 )
 
 func TestSocketXDPGetInfo(t *testing.T) {
+	t.Skip("broken on buildd")
 	xdpsockfd, err := unix.Socket(unix.AF_XDP, unix.SOCK_RAW, 0)
 	if err != nil {
 		t.Fatal(err)