test: remove hack for private header inclusion
authorDavid Marchand <david.marchand@redhat.com>
Thu, 24 Jun 2021 11:53:19 +0000 (13:53 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 6 Jul 2021 11:28:35 +0000 (13:28 +0200)
This hack was needed with the make build system.
With meson, any private header from a library is visible as long as a
dependency to this library is expressed.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
app/test/test_eal_fs.c
app/test/test_memzone.c
app/test/test_telemetry_json.c

index bb93b82..39ac696 100644 (file)
@@ -8,8 +8,7 @@
 #include <string.h>
 #include <errno.h>
 
-/* eal_filesystem.h is not a public header file, so use relative path */
-#include "../../lib/eal/common/eal_filesystem.h"
+#include "eal_filesystem.h"
 
 static int
 test_parse_sysfs_value(void)
index 03a9d1d..27b8b52 100644 (file)
@@ -18,7 +18,8 @@
 #include <rte_string_fns.h>
 #include <rte_errno.h>
 #include <rte_malloc.h>
-#include "../../lib/eal/common/malloc_elem.h"
+
+#include "malloc_elem.h"
 
 #include "test.h"
 
index 3171ab1..790181d 100644 (file)
@@ -4,7 +4,8 @@
 
 #include <string.h>
 
-#include "../../lib/telemetry/telemetry_json.h"
+#include "telemetry_json.h"
+
 #include "test.h"
 
 static int