This patch does not change the UT in functional way. Added accounting of last_tsc and spdk_get_ticks() similar to the real application. First the reactor_run() [not _reactor_run()] starts reactor->tsc_last to current time. UT now set it at the start and never touch it again directly. Second the spdk_get_ticks() is updated to the elapsed time to simulate flow of time, and make sure that its further usage is up to date to the current time. Fixed typo in test case description for test_reactor_stats. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Iaa2eb00fa3bffc2f21f1692da0259f1d023086b8 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7904 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Community-CI: Mellanox Build Bot |
||
---|---|---|
.. | ||
app.c | ||
reactor.c | ||
Makefile |