From patchwork Sat Sep 22 11:55:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jananee Parthasarathy X-Patchwork-Id: 45169 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9C2E1A49; Sat, 22 Sep 2018 14:01:03 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id CFD43255 for ; Sat, 22 Sep 2018 14:01:01 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2018 05:01:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,289,1534834800"; d="scan'208";a="72052356" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga007.fm.intel.com with ESMTP; 22 Sep 2018 04:55:30 -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 w8MBtTwP001414; Sat, 22 Sep 2018 12:55:29 +0100 Received: from wgcvswdev001.ir.intel.com (localhost [127.0.0.1]) by wgcvswdev001.ir.intel.com with ESMTP id w8MBtHwT001143; Sat, 22 Sep 2018 12:55:17 +0100 Received: (from jmparthx@localhost) by wgcvswdev001.ir.intel.com with ? id w8MBtHC5001139; Sat, 22 Sep 2018 12:55:17 +0100 From: Jananee Parthasarathy To: dev@dpdk.org Cc: reshma.pattan@intel.com, rsanford@akamai.com, Jananee Parthasarathy Date: Sat, 22 Sep 2018 12:55:11 +0100 Message-Id: <1537617311-1092-1-git-send-email-jananeex.m.parthasarathy@intel.com> X-Mailer: git-send-email 1.7.12.2 Subject: [dpdk-dev] [PATCH] test: reduce duration for timer autotest X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Reduced the test duration of timer_autotest. The number of iterations was very large to test the timer functionality. Although the method to identify random timers can be different, many iterations would be needed for stress or performance test only. Signed-off-by: Jananee Parthasarathy Nacked-by: Reshma Pattan --- test/test/test_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test/test_timer.c b/test/test/test_timer.c index e2aab5308..d625f1f4d 100644 --- a/test/test/test_timer.c +++ b/test/test/test_timer.c @@ -358,7 +358,7 @@ timer_stress2_main_loop(__attribute__((unused)) void *arg) timer_stress2_cb, NULL); /* pick random timer to reset, stopping them first half the time */ - for (i = 0; i < 100000; i++) { + for (i = 0; i < NB_STRESS2_TIMERS; i++) { int r = rand() % NB_STRESS2_TIMERS; if (i % 2) rte_timer_stop(&timers[r]);