selftests/bpf: convert send_signal.c to use subtests
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>
This commit is contained in:
Родитель
51436ed78d
Коммит
b207edfe4e
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче