selftests/bpf: Migrate prog_tests/trace_printk CHECKs to ASSERTs
authorDave Marchevsky <davemarchevsky@fb.com>
Fri, 17 Sep 2021 18:29:09 +0000 (11:29 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 17 Sep 2021 21:02:05 +0000 (14:02 -0700)
commitd313d45a226fdc59739c3da05bbd065f71bae5a6
treee65b103172a13e1062e54f3981b8aa821fad47f7
parent4190c299a49f323232221e73fe1846c53e3fc3f1
selftests/bpf: Migrate prog_tests/trace_printk CHECKs to ASSERTs

Guidance for new tests is to use ASSERT macros instead of CHECK. Since
trace_vprintk test will borrow heavily from trace_printk's, migrate its
CHECKs so it remains obvious that the two are closely related.

Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210917182911.2426606-8-davemarchevsky@fb.com
tools/testing/selftests/bpf/prog_tests/trace_printk.c