app/test: count tests skipped at setup
[dpdk.git] / app / test / test_eal_fs.c
index 7ca2164..b3686ed 100644 (file)
@@ -8,8 +8,17 @@
 #include <string.h>
 #include <errno.h>
 
-/* eal_filesystem.h is not a public header file, so use relative path */
-#include "../../lib/librte_eal/common/eal_filesystem.h"
+#include "eal_filesystem.h"
+
+#ifdef RTE_EXEC_ENV_WINDOWS
+static int
+test_eal_fs(void)
+{
+       printf("eal_fs not supported on Windows, skipping test\n");
+       return TEST_SKIPPED;
+}
+
+#else
 
 static int
 test_parse_sysfs_value(void)
@@ -22,7 +31,7 @@ test_parse_sysfs_value(void)
        unsigned valid_number;
        unsigned long retval = 0;
 
-#ifdef RTE_EXEC_ENV_BSDAPP
+#ifdef RTE_EXEC_ENV_FREEBSD
        /* BSD doesn't have /proc/pid/fd */
        return 0;
 #endif
@@ -174,4 +183,6 @@ test_eal_fs(void)
        return 0;
 }
 
+#endif /* !RTE_EXEC_ENV_WINDOWS */
+
 REGISTER_TEST_COMMAND(eal_fs_autotest, test_eal_fs);