test/event: fix timeout accuracy
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Sat, 6 Mar 2021 20:26:58 +0000 (01:56 +0530)
committerJerin Jacob <jerinj@marvell.com>
Mon, 12 Apr 2021 07:19:02 +0000 (09:19 +0200)
commit41f27795bb947c9aa1d02e0c8a2688af2a3197ba
tree51bba8ef9165dcc01e605837512c754a7154a728
parent324b37e637d15c172ea6f25aee3dcf3852984130
test/event: fix timeout accuracy

Round timeout ticks when converting from nanoseconds, this prevents
loss of accuracy and deviation from requested timeout value.

Fixes: d1f3385d0076 ("test: add event timer adapter auto-test")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
app/test/test_event_timer_adapter.c