diff options
Diffstat (limited to 'sandbox/seccomp/syscall_test.go')
| -rw-r--r-- | sandbox/seccomp/syscall_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sandbox/seccomp/syscall_test.go b/sandbox/seccomp/syscall_test.go new file mode 100644 index 00000000..81f470aa --- /dev/null +++ b/sandbox/seccomp/syscall_test.go @@ -0,0 +1,16 @@ +package seccomp + +import ( + "testing" +) + +func TestSyscallResolveName(t *testing.T) { + for name, want := range syscallNum { + t.Run(name, func(t *testing.T) { + if got := syscallResolveName(name); got != want { + t.Errorf("syscallResolveName(%q) = %d, want %d", + name, got, want) + } + }) + } +} |
