From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] test: fix missing NULL pointer checks Date: Tue, 27 Jan 2015 15:21:53 +0100 Message-ID: <6392453.J7yAtK8u6B@xps13> References: <1422368268-10068-1-git-send-email-danielx.t.mrzyglod@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Daniel Mrzyglod Return-path: In-Reply-To: <1422368268-10068-1-git-send-email-danielx.t.mrzyglod-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 2015-01-27 15:17, Daniel Mrzyglod: > In test_sched, we are missing NULL pointer checks after calls to create the > mempool and to allocate an mbuf. Add in these checks using TEST_ASSERT_NOT_NULL macros. You are adding checks *and* replacing VERIFY by TEST_ASSERT_NOT_NULL. It would be better to explain why you do these replacements. Please don't forget to answer the "why" question in the commit logs. Thanks -- Thomas