cmd/snap-seccomp: skip tests that use -m32
authorZygmunt Krynicki <me@zygoon.pl>
Thu, 17 Jan 2019 15:21:22 +0000 (17:21 +0200)
committerZygmunt Krynicki <me@zygoon.pl>
Tue, 25 Mar 2025 12:33:00 +0000 (12:33 +0000)
commitd509a49059a0a1e0f59f2d22bd5c6f37e32716eb
tree4c0c3211b472f9a825678fac0bff9244bf506665
parent94166b3709c85f35446816e9432540c9b8dce5c9
cmd/snap-seccomp: skip tests that use -m32

Apparently Debian's amd64 compiler somehow cannot compile -m32 mode
binaries. The compilation error is:

multipass@debian-10:~/packaging/snapd/cmd/snap-seccomp$ go test
cannot build multi-lib syscall runner: exit status 1
In file included from /usr/include/errno.h:25,
 from /tmp/check-3806730340354206876/1/seccomp_syscall_runner.c:3:
/usr/include/features.h:424:12: fatal error: sys/cdefs.h: No such file or directory
 #  include <sys/cdefs.h>
    ^~~~~~~~~~~~~
compilation terminated.
OK: 2 passed, 11 skipped

I was unable to resolve this issue, let's disable this test until we can get to
the bottom of it.

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0003-cmd-snap-seccomp-skip-tests-that-use-m32.patch
cmd/snap-seccomp/main_test.go