On Wed,  1 Dec 2021 10:05:38 -0800
Jie Zhou <j...@linux.microsoft.com> wrote:

> diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c
> index b206db27ae..c2ea9090cf 100644
> --- a/app/test/test_dmadev.c
> +++ b/app/test/test_dmadev.c
> @@ -2,6 +2,17 @@
>   * Copyright(c) 2021 HiSilicon Limited
>   * Copyright(c) 2021 Intel Corporation
>   */
> +#include "test.h"
> +
> +#ifdef RTE_EXEC_ENV_WINDOWS
> +static int
> +test_dma(void)
> +{
> +     printf("dma not supported on Windows, skipping test\n");
> +     return TEST_SKIPPED;
> +}
> +
> +#else

Rather than littering code with ifdefs is it not possible to
just not build these tests on Windows?

Reply via email to