b537ddc752
* tests/sock_filter-v-Xabbrev.c: New file. * tests/sock_filter-v-Xraw.c: Likewise. * tests/sock_filter-v-Xverbose.c: Likewise. * tests/sock_filter-v.c (PRINT_STMT_SYM, PRINT_STMT_SYM_, PRINT_STMT_VAL, PRINT_STMT_VAL_, PRINT_JUMP_): Remove. (HEX_FMT, XLAT_FMT, XLAT_ARGS, PRINT_STMT): New macros. (PRINT_JUMP): Rewrite. (print_filter): Rewrite using PRINT_STMT and new PRINT_JUMP. (main): Print SOL_SOCKET, SO_ATTACH_FILTER, and SO_ATTACH_REUSEPORT_CBPF using XLAT_FMT/XLAT_ARGS macros. * tests/pure_executables.list: Add sock_filter-v-Xabbrev, sock_filter-v-Xraw, and sock_filter-v-Xverbose. * tests/.gitignore: Likewise. * tests/gen_tests.in (sock_filter-v-Xabbrev, sock_filter-v-Xraw, sock_filter-v-Xverbose): New tests. Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2 lines
27 B
C
2 lines
27 B
C
#include "sock_filter-v.c"
|