File: 0001-Skip-buggy-tests-on-big-endian-hosts.patch

package info (click to toggle)
golang-github-mdlayher-ethtool 0.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 232 kB
  • sloc: makefile: 2
file content (31 lines) | stat: -rw-r--r-- 952 bytes parent folder | download | duplicates (2)
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
From: Daniel Swarbrick <dswarbrick@debian.org>
Date: Fri, 20 Sep 2024 02:28:15 +0200
Subject: Skip buggy tests on big endian hosts

Bug: https://github.com/mdlayher/ethtool/issues/12.
---
 client_linux_test.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/client_linux_test.go b/client_linux_test.go
index 5389ffc..3a0b3ac 100644
--- a/client_linux_test.go
+++ b/client_linux_test.go
@@ -976,6 +976,8 @@ func TestFEC(t *testing.T) {
 }
 
 func TestPrivateFlags(t *testing.T) {
+	skipBigEndian(t)
+
 	// Reference value captured from ethtool --show-priv-flags eth0
 	c := testClient(t, clientTest{
 		HeaderFlags:       netlink.Request,
@@ -1002,6 +1004,8 @@ func TestPrivateFlags(t *testing.T) {
 }
 
 func TestSetPrivateFlags(t *testing.T) {
+	skipBigEndian(t)
+
 	// Reference value captured from ethtool --set-priv-flags eth0 disable-fw-lldp on
 	c := testClient(t, clientTest{
 		HeaderFlags:       netlink.Request | netlink.Acknowledge,