From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <jmparthx@ecsmtp.ir.intel.com>
Received: from mga12.intel.com (mga12.intel.com [192.55.52.136])
 by dpdk.org (Postfix) with ESMTP id B1A2C326C
 for <dev@dpdk.org>; Wed, 19 Sep 2018 16:39:29 +0200 (CEST)
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from orsmga008.jf.intel.com ([10.7.209.65])
 by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 19 Sep 2018 07:39:28 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.53,394,1531810800"; d="scan'208";a="74533240"
Received: from irvmail001.ir.intel.com ([163.33.26.43])
 by orsmga008.jf.intel.com with ESMTP; 19 Sep 2018 07:39:26 -0700
Received: from wgcvswdev001.ir.intel.com (wgcvswdev001.ir.intel.com
 [10.102.246.100])
 by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id
 w8JEdPKD018435; Wed, 19 Sep 2018 15:39:25 +0100
Received: from wgcvswdev001.ir.intel.com (localhost [127.0.0.1])
 by wgcvswdev001.ir.intel.com with ESMTP id w8JEdD46031734;
 Wed, 19 Sep 2018 15:39:13 +0100
Received: (from jmparthx@localhost)
	by wgcvswdev001.ir.intel.com with œ id w8JEdDLf031729;
	Wed, 19 Sep 2018 15:39:13 +0100
From: Pallantla Poornima <pallantlax.poornima@intel.com>
To: dev@dpdk.org
Cc: anatoly.burakov@intel.com, reshma.pattan@intel.com,
 Pallantla Poornima <pallantlax.poornima@intel.com>
Date: Wed, 19 Sep 2018 15:39:10 +0100
Message-Id: <1537367950-31678-1-git-send-email-pallantlax.poornima@intel.com>
X-Mailer: git-send-email 1.7.12.2
X-Mailman-Approved-At: Thu, 20 Sep 2018 10:13:16 +0200
Subject: [dpdk-dev] [PATCH] test: disable alarm autotest in FreeBSD
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Sep 2018 14:39:30 -0000

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>
---
 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 f566947f2..d1284b379 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.16.3