diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-07-18 23:18:26 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-07-18 23:18:26 +0900 |
| commit | 9d7a19d162e7003ce89804f00c526b77b2328baa (patch) | |
| tree | 115badd81cd1824cfc58bb0c573a210dd5209d73 /container/seccomp | |
| parent | 6ba19a7ba5c36a4276dceeab9a5d158c5d9738a0 (diff) | |
container: use more reliable nonexistence
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/seccomp')
| -rw-r--r-- | container/seccomp/libseccomp_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container/seccomp/libseccomp_test.go b/container/seccomp/libseccomp_test.go index 8443adec..1ae3f764 100644 --- a/container/seccomp/libseccomp_test.go +++ b/container/seccomp/libseccomp_test.go @@ -79,7 +79,7 @@ func TestExport(t *testing.T) { func BenchmarkExport(b *testing.B) { buf := make([]byte, 8) - for i := 0; i < b.N; i++ { + for b.Loop() { e := New( Preset(PresetExt|PresetDenyNS|PresetDenyTTY|PresetDenyDevel|PresetLinux32, AllowMultiarch|AllowCAN|AllowBluetooth), |
