summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPallantla Poornima <pallantlax.poornima@intel.com>2018-09-19 15:39:10 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-10-29 03:29:20 +0100
commit3bb038388962d7243277eb190dfdbc044087c6b3 (patch)
treeab2a1c32387ea5c6d54c53c952359471dc4bd51b
parent7f6ee6aee717e4ee5ca1d3f06af5a14f897b2168 (diff)
downloaddpdk-3bb038388962d7243277eb190dfdbc044087c6b3.zip
dpdk-3bb038388962d7243277eb190dfdbc044087c6b3.tar.gz
dpdk-3bb038388962d7243277eb190dfdbc044087c6b3.tar.xz
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 <pallantlax.poornima@intel.com> Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com> Acked-by: Reshma Pattan <reshma.pattan@intel.com>
-rw-r--r--test/test/test_alarm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test/test_alarm.c b/test/test/test_alarm.c
index f566947..d1284b3 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;