OSDN Git Service

selftests/bpf: Add ASSERT_STRNEQ() variant for test_progs
authorAlan Maguire <alan.maguire@oracle.com>
Thu, 15 Jul 2021 15:15:25 +0000 (16:15 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 16 Jul 2021 20:46:59 +0000 (13:46 -0700)
commit17283337ff86a1956940bc6bfb3f7dafe82304f3
treef3989126e5c0bd1651a6b54499b26e56867cc232
parent920d16af9b42adfc8524d880b0e8dba66a6cb87d
selftests/bpf: Add ASSERT_STRNEQ() variant for test_progs

It will support strncmp()-style string comparisons.

Suggested-by: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/1626362126-27775-3-git-send-email-alan.maguire@oracle.com
tools/testing/selftests/bpf/test_progs.h