File: 0002-Skip-TestNotif-on-32bit-system.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-- 637 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:34:52 +0800
Subject: Skip TestNotif on 32bit system

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

diff --git a/seccomp_test.go b/seccomp_test.go
index 408b673..171bc23 100644
--- a/seccomp_test.go
+++ b/seccomp_test.go
@@ -4,6 +4,7 @@ package seccomp
 
 import (
 	"fmt"
+	"math/bits"
 	"os"
 	"os/exec"
 	"runtime"
@@ -801,6 +802,9 @@ func notifHandler(ch chan error, fd ScmpFd, tests []notifTest) {
 }
 
 func TestNotif(t *testing.T) {
+	if bits.UintSize == 32 {
+		t.Skip("not working on 32bit system")
+	}
 	execInSubprocess(t, subprocessNotif)
 }