You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aya/test/integration-test/src/tests
Michal Rostecki c05a3b69b7 aya-obj: Handle lack of match of enum variants correctly
When comparing `local_spec` with `target_spec` for enum relocations,
we can encounter a situation when a matchinng variant in a candidate
spec doesn't exist.

Before this change, such case wasn't handled explicitly, therefore
resulted in returning currently constructed `target_spec` at the
end. The problem is that such `target_spec` was, due to lack of
match, incomplete. It didn't contain any `accessors` nor `parts`.

Later usage of such incomplete `target_spec` was leading to panics,
since the code operating on enums' `target_spec` expects at least
one `accessor` to be available.

Fixes #868
10 months ago
..
bpf_probe_read.rs integration-tests: enable logs 1 year ago
btf_relocations.rs aya-obj: Handle lack of match of enum variants correctly 10 months ago
elf.rs integration-tests: enable logs 1 year ago
load.rs aya/maps: pin for (async)perf_event_array 12 months ago
log.rs integration-tests: enable logs 1 year ago
rbpf.rs integration-tests: enable logs 1 year ago
relocations.rs github: run integration tests on local kernel 1 year ago
ring_buf.rs integration-tests: enable logs 1 year ago
smoke.rs aya: add MapInfo struct following the same pattern as ProgramInfo 12 months ago
xdp.rs tests: change AF_XDP test `PacketMap` repr to `C` 12 months ago