test/metrics: fix second run
authorHarman Kalra <hkalra@marvell.com>
Thu, 11 Jul 2019 09:26:12 +0000 (09:26 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 16 Jul 2019 10:46:07 +0000 (12:46 +0200)
commit9d10f53e403820e35c68ba581c065db7e12cbe3d
treee03c95a082edaca76ac4ad522b9b68d605e8f832
parent44dc7c0a2609189ff7154872abaeadb9dce4ea04
test/metrics: fix second run

Issue is observed while running 'metrics_autotest' continuously
without quiting. During first execution all test cases pass but
second run onwards first test case fails as library is already
initialized.

To resolve, introduced a new API to deinitialise the library
after all test cases are executed.

Fixes: cd3804242901 ("test/metrics: add unit tests for metrics library")

Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: Remy Horton <remy.horton@intel.com>
Tested-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
app/test/test_metrics.c