diff options
author | Andrii Nakryiko <andriin@fb.com> | 2019-10-16 09:00:47 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-10-17 22:15:08 +0300 |
commit | ee6c52e92dd0dc72f08d2546eca037ee9606ddb3 (patch) | |
tree | 33f4c1da43fd810ef95c25e032a882a29d6b063d /tools/testing/selftests/bpf/test_maps.c | |
parent | d25c5e23552d54ebb9eea0de0d8cf9b7a7c5535c (diff) | |
download | linux-ee6c52e92dd0dc72f08d2546eca037ee9606ddb3.tar.xz |
selftests/bpf: Switch test_maps to test_progs' test.h format
Make test_maps use tests.h header format consistent with the one used by
test_progs, to facilitate unification.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191016060051.2024182-4-andriin@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/test_maps.c')
-rw-r--r-- | tools/testing/selftests/bpf/test_maps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/testing/selftests/bpf/test_maps.c b/tools/testing/selftests/bpf/test_maps.c index e1f1becda529..806b298397d3 100644 --- a/tools/testing/selftests/bpf/test_maps.c +++ b/tools/testing/selftests/bpf/test_maps.c @@ -1717,9 +1717,9 @@ static void run_all_tests(void) test_map_in_map(); } -#define DECLARE +#define DEFINE_TEST(name) extern void test_##name(void); #include <map_tests/tests.h> -#undef DECLARE +#undef DEFINE_TEST int main(void) { @@ -1731,9 +1731,9 @@ int main(void) map_flags = BPF_F_NO_PREALLOC; run_all_tests(); -#define CALL +#define DEFINE_TEST(name) test_##name(); #include <map_tests/tests.h> -#undef CALL +#undef DEFINE_TEST printf("test_maps: OK, %d SKIPPED\n", skips); return 0; |