diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-04 13:30:16 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-04 13:30:16 +0900 |
| commit | f7bd6a5a4172dec89a1b86100602163b61b8ff86 (patch) | |
| tree | 2bd7f5222be741a53199333361d517d982782bb1 /test/sandbox/assert.go | |
| parent | ea853e21d9adc86ad3ce0c9f0c752d987d721abd (diff) | |
test/sandbox: check seccomp outcome
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/assert.go')
| -rw-r--r-- | test/sandbox/assert.go | 6 |
1 files changed, 6 insertions, 0 deletions
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) + } +} |
