test/cycles: restore default delay callback
authorRuifeng Wang <ruifeng.wang@arm.com>
Mon, 27 Jul 2020 10:21:50 +0000 (18:21 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 27 Jul 2020 14:42:19 +0000 (16:42 +0200)
commitec0b862d5e52db12932c3125d06081307aea6af4
treee7976b6b946297580ee6dacdeeb9ebe2123dbe16
parenta5f803c804c4f75ce7c736a143170c49bb7e72c9
test/cycles: restore default delay callback

test_delay_us_sleep registers sleep based delay for testing.
This changes the default delay function of testing environment.
It is not expected.

Restore default delay function after the test to fix the issue.

Fixes: a51639cc720a ("eal: add nanosleep based delay function")
Cc: stable@dpdk.org
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
app/test/test_cycles.c