Debian Codegraph @

debian/patches/0001-skip-vsock-test.patch

raw
1 From: Mathias Gibbens <[email protected]>
2 Date: Sat, 22 Jul 2023 03:49:19 +0800
3 Subject: Skip rather than fail a vsock test,
4 since the buildds seem not to have the vsock kernel module loaded
5
6 Forwarded: not-needed
7 ---
8 conn_linux_test.go | 4 +++-
9 1 file changed, 3 insertions(+), 1 deletion(-)
10
11 diff --git a/conn_linux_test.go b/conn_linux_test.go
12 index 0f7a882..00a7a6d 100644
13 --- a/conn_linux_test.go
14 +++ b/conn_linux_test.go
15 @@ -140,7 +140,9 @@ func TestLinuxDialVsockNoListener(t *testing.T) {
16 // https://github.com/lxc/lxd/pull/9894 for context on this test.
17 c, err := socket.Socket(unix.AF_VSOCK, unix.SOCK_STREAM, 0, "vsock", nil)
18 if err != nil {
19 - t.Fatalf("failed to open socket: %v", err)
20 + // The buildds seem not to have the vsock kernel module loaded, so skip
21 + // the test if we can't open the socket
22 + t.Skipf("failed to open socket: %v", err)
23 }
24 defer c.Close()
25