aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox/assert.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/sandbox/assert.go')
-rw-r--r--test/sandbox/assert.go6
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)
+ }
+}