commit | 69b09175d68241cb96ff9433d8e7a17382d720d6 | [log] [tgz] |
---|---|---|
author | Stanislav Fomichev <sdf@google.com> | Wed Mar 06 15:25:26 2019 -0800 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Thu Mar 07 10:46:25 2019 +0100 |
tree | 4b0f21f8cad390faf4bea9126a29bdbf4d60d4e6 | |
parent | 8e2688876c7f7073d925e1f150e86b8ed3338f52 [diff] |
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>