From 3bb038388962d7243277eb190dfdbc044087c6b3 Mon Sep 17 00:00:00 2001 From: Pallantla Poornima Date: Wed, 19 Sep 2018 15:39:10 +0100 Subject: [PATCH] test: disable alarm autotest in FreeBSD Disabled the alarm_autotest UT in FreeBSD Interrupts are not supported in FreeBSD. Alarm API depends on interrupts, so disabled alarm test on FreeBSD. Signed-off-by: Pallantla Poornima Reviewed-by: Anatoly Burakov Acked-by: Reshma Pattan --- test/test/test_alarm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test/test_alarm.c b/test/test/test_alarm.c index f566947f2f..d1284b379f 100644 --- a/test/test/test_alarm.c +++ b/test/test/test_alarm.c @@ -178,7 +178,10 @@ static int test_alarm(void) { int count = 0; - +#ifdef RTE_EXEC_ENV_BSDAPP + printf("The alarm API is not supported on FreeBSD\n"); + return 0; +#endif /* check if the callback will be called */ printf("check if the callback will be called\n"); flag = 0; -- 2.20.1