test/sandbox: check seccomp outcome

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-03-04 13:30:16 +09:00
parent ea853e21d9
commit f7bd6a5a41
4 changed files with 79 additions and 0 deletions

View File

@@ -78,3 +78,9 @@ func MustAssertFS(e fs.FS, wantFile string) {
fatalf("%v", err)
}
}
func MustAssertSeccomp() {
if TrySyscalls() != nil {
os.Exit(1)
}
}