test/alarm: add delay tolerance
authorQiming Yang <qiming.yang@intel.com>
Tue, 20 Jun 2017 03:24:11 +0000 (11:24 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 14 Jul 2017 09:57:54 +0000 (11:57 +0200)
commit82d708384ff0bfeaa282b338f5e9dcd7e3fa41ed
treeb8812bcc8fe39bec27026b29549a8db73732ca89
parent7ee3e9446290ba3f618d8cb93374e76994057057
test/alarm: add delay tolerance

Because accuracy of timing to the microsecond is not guaranteed
in rte_eal_alarm_set, this function will not be called before
the requested time, but may be called a period of time
afterwards which can not be calculated. In order to ensure
test alarm running success, this patch added the delay time
before check the flag.

Signed-off-by: Qiming Yang <qiming.yang@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
test/test/test_alarm.c