event/sw: add unit test for unlinks in progress
authorHarry van Haaren <harry.van.haaren@intel.com>
Mon, 24 Sep 2018 08:23:33 +0000 (09:23 +0100)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 1 Oct 2018 14:49:10 +0000 (16:49 +0200)
commit1638261a69b906eb56b871549bf4a64676d82d9f
tree84b3f93b9f2f45d21cf39ee17f5153ba2a6fb9d4
parentbd5ac24fea88a2825e437c505a6f05b102010dda
event/sw: add unit test for unlinks in progress

This commit adds a unit test that checks the behaviour
of the unlinks_in_progress() function, ensuring that the
returned values are the number of unlinks requested,
until the scheduler runs and "acks" the requests, after
which the count should be zero again.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
drivers/event/sw/sw_evdev_selftest.c