diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-11-23 18:10:54 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-11-23 18:10:54 +0900 |
| commit | 4d31e3fc36bb6fad04b121ff59f31ad9ea7bd418 (patch) | |
| tree | 828fd0496ab3e3a228ce28fda106233474764ce6 /container | |
| parent | 4299fb68b467773aa93d3985e100a87becb2e38e (diff) | |
all: support testing via qemu
This adds the qemu build tag which disables tests unsupported on QEMU.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container')
| -rw-r--r-- | container/container_test.go | 2 | ||||
| -rw-r--r-- | container/seccomp/std_test.go | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/container/container_test.go b/container/container_test.go index e70e23d3..5185a858 100644 --- a/container/container_test.go +++ b/container/container_test.go @@ -1,3 +1,5 @@ +//go:build !qemu + package container_test import ( diff --git a/container/seccomp/std_test.go b/container/seccomp/std_test.go index 93b5613c..4b90badf 100644 --- a/container/seccomp/std_test.go +++ b/container/seccomp/std_test.go @@ -16,9 +16,12 @@ func TestSyscallResolveName(t *testing.T) { t.Run(name, func(t *testing.T) { t.Parallel() - // this checks the std implementation against libseccomp. + // this checks the ext implementation against libseccomp. if got, ok := syscallResolveName(name); !ok || got != want { - t.Errorf("syscallResolveName(%q) = %d, want %d", name, got, want) + t.Errorf( + "seccomp_syscall_resolve_name(%q) = %d, want %d", + name, got, want, + ) } }) } |
