From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jananee Parthasarathy Subject: [PATCH] test: reduce duration for timer autotest Date: Sat, 22 Sep 2018 12:55:11 +0100 Message-ID: <1537617311-1092-1-git-send-email-jananeex.m.parthasarathy@intel.com> Cc: reshma.pattan@intel.com, rsanford@akamai.com, Jananee Parthasarathy To: dev@dpdk.org Return-path: 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) 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 --- 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]); -- 2.13.6