From f7bd6a5a4172dec89a1b86100602163b61b8ff86 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 4 Mar 2025 13:30:16 +0900 Subject: test/sandbox: check seccomp outcome Signed-off-by: Ophestra --- test/sandbox/assert.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/sandbox/assert.go') diff --git a/test/sandbox/assert.go b/test/sandbox/assert.go index 4df2774a..12323a0d 100644 --- a/test/sandbox/assert.go +++ b/test/sandbox/assert.go @@ -78,3 +78,9 @@ func MustAssertFS(e fs.FS, wantFile string) { fatalf("%v", err) } } + +func MustAssertSeccomp() { + if TrySyscalls() != nil { + os.Exit(1) + } +} -- cgit v1.3.1