diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-05 04:48:05 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-05 04:48:05 +0900 |
| commit | becaf8b6d7151971907ff65f338afa038f021c92 (patch) | |
| tree | 4130439807baa92b11d85ad1199d0f2f5e27f001 /container/std/syscall_test.go | |
| parent | 54c0d6bf48fdfade3aaf7741ec3d3cbc302c8b82 (diff) | |
std: relocate seccomp lookup tables
This should enable resolving NativeRule in hst.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/std/syscall_test.go')
| -rw-r--r-- | container/std/syscall_test.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/container/std/syscall_test.go b/container/std/syscall_test.go new file mode 100644 index 00000000..b82cc46a --- /dev/null +++ b/container/std/syscall_test.go @@ -0,0 +1,21 @@ +package std_test + +import ( + "testing" + + "hakurei.app/container/std" +) + +func TestSyscallResolveName(t *testing.T) { + t.Parallel() + + for name, want := range std.Syscalls() { + t.Run(name, func(t *testing.T) { + t.Parallel() + + if got, ok := std.SyscallResolveName(name); !ok || got != want { + t.Errorf("SyscallResolveName(%q) = %d, want %d", name, got, want) + } + }) + } +} |
