X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_lpm.c;h=bceb9ae743d75032d7f4d64cfd87456dcb78b50b;hb=94b3c1a72507b49df61889f0f237dae85bb49be5;hp=37b460af3a962d1694afdaa540431a21a094285e;hpb=4a6672c2d301c105189ae74de73260af204c5ee8;p=dpdk.git diff --git a/app/test/test_lpm.c b/app/test/test_lpm.c index 37b460af3a..bceb9ae743 100644 --- a/app/test/test_lpm.c +++ b/app/test/test_lpm.c @@ -2,6 +2,18 @@ * Copyright(c) 2010-2014 Intel Corporation */ +#include "test.h" + +#ifdef RTE_EXEC_ENV_WINDOWS +static int +test_lpm(void) +{ + printf("lpm not supported on Windows, skipping test\n"); + return TEST_SKIPPED; +} + +#else + #include #include #include @@ -10,7 +22,6 @@ #include #include -#include "test.h" #include "test_xmmt_ops.h" #define TEST_LPM_ASSERT(cond) do { \ @@ -1584,4 +1595,6 @@ test_lpm(void) return global_status; } +#endif /* !RTE_EXEC_ENV_WINDOWS */ + REGISTER_TEST_COMMAND(lpm_autotest, test_lpm);