selftests/seccomp: Refactor to use fixture variants
authorKees Cook <keescook@chromium.org>
Sun, 5 Jul 2020 05:34:04 +0000 (22:34 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 10 Jul 2020 23:01:52 +0000 (16:01 -0700)
commitadeeec8472397001901c06aa41d1b2fd1068e222
treedb7b338e373719778e9160fa61446c726bbeeab9
parent9d1587adcc356c1570c9830364e7797a9c19696c
selftests/seccomp: Refactor to use fixture variants

Now that the selftest harness has variants, use them to eliminate a
bunch of copy/paste duplication.

Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Tested-by: Will Deacon <will@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
tools/testing/selftests/seccomp/seccomp_bpf.c