selftests/bpf: convert send_signal.c to use subtests
authorAndrii Nakryiko <andriin@fb.com>
Sun, 28 Jul 2019 03:25:31 +0000 (20:25 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 28 Jul 2019 05:36:19 +0000 (22:36 -0700)
Convert send_signal set of tests to be exposed as three sub-tests.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/send_signal.c

index d950f45588979557ddc2b3bd8770325220bdc622..461b423d0584361a26bdb5bbbd869d84ce6a635f 100644 (file)
@@ -219,7 +219,10 @@ void test_send_signal(void)
 {
        int ret = 0;
 
-       ret |= test_send_signal_tracepoint();
-       ret |= test_send_signal_perf();
-       ret |= test_send_signal_nmi();
+       if (test__start_subtest("send_signal_tracepoint"))
+               ret |= test_send_signal_tracepoint();
+       if (test__start_subtest("send_signal_perf"))
+               ret |= test_send_signal_perf();
+       if (test__start_subtest("send_signal_nmi"))
+               ret |= test_send_signal_nmi();
 }