aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/seccomp/syscall_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'container/seccomp/syscall_test.go')
-rw-r--r--container/seccomp/syscall_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/container/seccomp/syscall_test.go b/container/seccomp/syscall_test.go
index e385a12c..57a73265 100644
--- a/container/seccomp/syscall_test.go
+++ b/container/seccomp/syscall_test.go
@@ -2,21 +2,21 @@ package seccomp
import (
"testing"
+
+ "hakurei.app/container/std"
)
func TestSyscallResolveName(t *testing.T) {
t.Parallel()
- for name, want := range Syscalls() {
+ for name, want := range std.Syscalls() {
t.Run(name, func(t *testing.T) {
t.Parallel()
- if got := syscallResolveName(name); got != want {
+ // this checks the std implementation against libseccomp.
+ if got, ok := syscallResolveName(name); !ok || got != want {
t.Errorf("syscallResolveName(%q) = %d, want %d", name, got, want)
}
- if got, ok := SyscallResolveName(name); !ok || got != want {
- t.Errorf("SyscallResolveName(%q) = %d, want %d", name, got, want)
- }
})
}
}