compress/qat: add info retrieval function
[dpdk.git] / test / test / test_debug.c
index dd0de44..faf2cf5 100644 (file)
@@ -10,6 +10,7 @@
 #include <rte_debug.h>
 #include <rte_common.h>
 #include <rte_eal.h>
+#include <rte_service_component.h>
 
 #include "test.h"
 
@@ -50,6 +51,11 @@ test_exit_val(int exit_val)
        int pid;
        int status;
 
+       /* manually cleanup EAL memory, as the fork() below would otherwise
+        * cause the same hugepages to be free()-ed multiple times.
+        */
+       rte_service_finalize();
+
        pid = fork();
 
        if (pid == 0)