Skip to content

Commit f406026

Browse files
eddyz87Alexei Starovoitov
authored andcommitted
selftests/bpf: by default use arch mask allowing all archs
If test case does not specify architecture via __arch_* macro consider that it should be run for all architectures. Fixes: 7d743e4 ("selftests/bpf: __jited test tag to check disassembly after jit") Signed-off-by: Eduard Zingerman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 4060909 commit f406026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/test_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ static int parse_test_spec(struct test_loader *tester,
543543
}
544544
}
545545

546-
spec->arch_mask = arch_mask;
546+
spec->arch_mask = arch_mask ?: -1;
547547

548548
if (spec->mode_mask == 0)
549549
spec->mode_mask = PRIV;

0 commit comments

Comments
 (0)