Skip to content

Commit

Permalink
selftests/bpf: convert send_signal.c to use subtests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrii Nakryiko authored and Alexei Starovoitov committed Jul 28, 2019
1 parent 51436ed commit b207edf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/testing/selftests/bpf/prog_tests/send_signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit b207edf

Please sign in to comment.