File: 0001-Skip-TestRuleAddAndLoad-on-ppc64le-Closes-976943.patch

package info (click to toggle)
golang-github-seccomp-libseccomp-golang 0.10.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: makefile: 18
file content (30 lines) | stat: -rw-r--r-- 695 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
From: Shengjing Zhu <zhsj@debian.org>
Date: Tue, 14 Jun 2022 03:30:34 +0800
Subject: Skip TestRuleAddAndLoad on ppc64le (Closes: #976943)

---
 seccomp_test.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/seccomp_test.go b/seccomp_test.go
index c65dbf0..408b673 100644
--- a/seccomp_test.go
+++ b/seccomp_test.go
@@ -6,6 +6,7 @@ import (
 	"fmt"
 	"os"
 	"os/exec"
+	"runtime"
 	"strings"
 	"syscall"
 	"testing"
@@ -579,6 +580,9 @@ func subprocessAddRuleErrors(t *testing.T) {
 }
 
 func TestRuleAddAndLoad(t *testing.T) {
+	if runtime.GOARCH == "ppc64le" {
+		t.Skip("https://github.com/seccomp/libseccomp-golang/issues/61")
+	}
 	execInSubprocess(t, subprocessRuleAddAndLoad)
 }