test/security: add inline inbound IPsec cases
[dpdk.git] / app / test / test_mp_secondary.c
index e1a7b4a..ad47d57 100644 (file)
 #include <errno.h>
 #include <string.h>
 #include <unistd.h>
+
+#ifdef RTE_EXEC_ENV_WINDOWS
+int
+test_mp_secondary(void)
+{
+       printf("mp_secondary not supported on Windows, skipping test\n");
+       return TEST_SKIPPED;
+}
+#else
+
 #include <sys/wait.h>
 #include <libgen.h>
 #include <dirent.h>
@@ -28,7 +38,6 @@
 #include <rte_lcore.h>
 #include <rte_errno.h>
 #include <rte_branch_prediction.h>
-#include <rte_atomic.h>
 #include <rte_ring.h>
 #include <rte_debug.h>
 #include <rte_log.h>
@@ -94,7 +103,7 @@ run_secondary_instances(void)
 #endif
 
        snprintf(coremask, sizeof(coremask), "%x", \
-                       (1 << rte_get_master_lcore()));
+                       (1 << rte_get_main_lcore()));
 
        ret |= launch_proc(argv1);
        printf("### Testing rte_mp_disable() reject:\n");
@@ -212,4 +221,6 @@ test_mp_secondary(void)
        return run_object_creation_tests();
 }
 
+#endif /* !RTE_EXEC_ENV_WINDOWS */
+
 REGISTER_TEST_COMMAND(multiprocess_autotest, test_mp_secondary);