summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Gabriel Carrillo <erik.g.carrillo@intel.com>2019-05-06 16:03:51 -0500
committerThomas Monjalon <thomas@monjalon.net>2019-05-09 21:07:55 +0200
commit8650e9350de807e8ef1a8a64a039f62fc1934646 (patch)
treea9e63a1f94120063deb0ba0c1bd75b8a140bf13a
parent7727ad9107137ee3f4dea212ad77e35cd4f3e6bc (diff)
downloaddpdk-draft-windows-8650e9350de807e8ef1a8a64a039f62fc1934646.zip
dpdk-draft-windows-8650e9350de807e8ef1a8a64a039f62fc1934646.tar.gz
dpdk-draft-windows-8650e9350de807e8ef1a8a64a039f62fc1934646.tar.xz
test: call timer subsystem finalize at exit
The eal_flags_autotest checks that no hugepage map files are left behind after a process exits, which can only be the case if all allocations made from DPDK heaps were freed back to the freelist, resulting in the hugepage map files being unlinked automatically. Add a call to rte_timer_subsystem_finalize() at application exit time to release allocations now made by the timer library. Fixes: c0749f7096c7 ("timer: allow management in shared memory") Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
-rw-r--r--app/test/test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/test/test.c b/app/test/test.c
index fbe4464..ea1e98f 100644
--- a/app/test/test.c
+++ b/app/test/test.c
@@ -187,6 +187,9 @@ main(int argc, char **argv)
ret = 0;
out:
+#ifdef RTE_LIBRTE_TIMER
+ rte_timer_subsystem_finalize();
+#endif
rte_eal_cleanup();
return ret;
}