From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CF365A0487 for ; Fri, 5 Jul 2019 19:19:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AAC471BDF5; Fri, 5 Jul 2019 19:19:14 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 67F6E1BDF0 for ; Fri, 5 Jul 2019 19:19:13 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Jul 2019 10:19:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,455,1557212400"; d="scan'208";a="248229956" Received: from sivswdev09.ir.intel.com (HELO localhost.localdomain) ([10.237.217.48]) by orsmga001.jf.intel.com with ESMTP; 05 Jul 2019 10:19:10 -0700 From: Fiona Trahe To: dev@dpdk.org Cc: akhil.goyal@nxp.com, fiona.trahe@intel.com Date: Fri, 5 Jul 2019 18:19:10 +0100 Message-Id: <1562347150-19022-1-git-send-email-fiona.trahe@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH] test/compress: clarify out-of-space error messages 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" Use ERR rather than INFO to warn that it's a negative test else the errors are seen but the warning to expect them isn't. Also add comment to make it easier to follow code. Signed-off-by: Fiona Trahe --- app/test/test_compressdev.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_compressdev.c b/app/test/test_compressdev.c index cf78775..65889c2 100644 --- a/app/test/test_compressdev.c +++ b/app/test/test_compressdev.c @@ -1870,7 +1870,7 @@ struct test_data_params { uint16_t i; const struct rte_compressdev_capabilities *capab; - RTE_LOG(INFO, USER1, "This is a negative test errors are expected\n"); + RTE_LOG(ERR, USER1, "This is a negative test errors are expected\n"); capab = rte_compressdev_capability_get(0, RTE_COMP_ALGO_DEFLATE); TEST_ASSERT(capab != NULL, "Failed to retrieve device capabilities"); @@ -1901,7 +1901,7 @@ struct test_data_params { RTE_COMP_OP_STATELESS, LB_BOTH, ZLIB_DECOMPRESS, - 1, + 1, /* run out-of-space test */ 0 }; /* Compress with compressdev, decompress with Zlib */ -- 1.7.0.7