From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH] test: fix incorrect return types Date: Tue, 17 Jul 2018 10:28:28 +0100 Message-ID: <3b00cf4a-4557-1c02-2a3b-e8df75cf32b8@intel.com> References: <1531760319-2996-1-git-send-email-reshma.pattan@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: jasvinder.singh@intel.com, bernard.iremonger@intel.com, stable@dpdk.org To: Reshma Pattan , dev@dpdk.org Return-path: In-Reply-To: <1531760319-2996-1-git-send-email-reshma.pattan@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 16-Jul-18 5:58 PM, Reshma Pattan wrote: > UTs should return either TEST_SUCCESS or TEST_FAILED only. > They should not return 0, -1 and any other value. > > Fixes: 9c9befea4f ("test: add flow classify unit tests") > CC: jasvinder.singh@intel.com > CC: bernard.iremonger@intel.com > CC: stable@dpdk.org > > Signed-off-by: Reshma Pattan > --- Perhaps it should be highlighted that along with making them return TEST_SUCCESS/FAILURE, you're also fixing the -ENOMEM return in one of the code paths. Otherwise, Reviewed-by: Anatoly Burakov -- Thanks, Anatoly