test: disable alarm autotest in FreeBSD
authorPallantla Poornima <pallantlax.poornima@intel.com>
Wed, 19 Sep 2018 14:39:10 +0000 (15:39 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 29 Oct 2018 02:29:20 +0000 (03:29 +0100)
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 <pallantlax.poornima@intel.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
test/test/test_alarm.c

index f566947..d1284b3 100644 (file)
@@ -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;