Commit 42765ede authored by Andrii Nakryiko's avatar Andrii Nakryiko Committed by Daniel Borkmann
Browse files

selftests/bpf: Remove too strict field offset relo test cases



As libbpf is going to gain support for more field relocations, including field
size, some restrictions about exact size match are going to be lifted. Remove
test cases that explicitly test such failures.

Signed-off-by: default avatarAndrii Nakryiko <andriin@fb.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191101222810.1246166-2-andriin@fb.com
parent 1574cf83
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
#include "core_reloc_types.h"

void f(struct core_reloc_ints___err_wrong_sz_32 x) {}
void f(struct core_reloc_arrays___err_wrong_val_type x) {}
+0 −3
Original line number Diff line number Diff line
#include "core_reloc_types.h"

void f(struct core_reloc_arrays___err_wrong_val_type1 x) {}
+0 −3
Original line number Diff line number Diff line
#include "core_reloc_types.h"

void f(struct core_reloc_arrays___err_wrong_val_type2 x) {}
+0 −3
Original line number Diff line number Diff line
#include "core_reloc_types.h"

void f(struct core_reloc_ints___err_bitfield x) {}
+0 −3
Original line number Diff line number Diff line
#include "core_reloc_types.h"

void f(struct core_reloc_ints___err_wrong_sz_16 x) {}
Loading