]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selftests: bpf: test_progs: initialize duration in singal_pending test
authorStanislav Fomichev <sdf@google.com>
Wed, 6 Mar 2019 23:25:26 +0000 (15:25 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 7 Mar 2019 09:46:25 +0000 (10:46 +0100)
commit69b09175d68241cb96ff9433d8e7a17382d720d6
tree4b0f21f8cad390faf4bea9126a29bdbf4d60d4e6
parent8e2688876c7f7073d925e1f150e86b8ed3338f52
selftests: bpf: test_progs: initialize duration in singal_pending test

CHECK macro implicitly uses duration. We call CHECK() a couple of times
before duration is initialized from bpf_prog_test_run().
Explicitly set duration to 0 to avoid compiler warnings.

Fixes: 740f8a657221 ("selftests/bpf: make sure signal interrupts BPF_PROG_TEST_RUN")
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/prog_tests/signal_pending.c