From patchwork Thu Mar 5 18:48:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 45467 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9DF6721494 for ; Thu, 5 Mar 2015 18:48:52 +0000 (UTC) Received: by labmn12 with SMTP id mn12sf12632182lab.2 for ; Thu, 05 Mar 2015 10:48:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:cc:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=KqIb/BxQ1EIc3S4cPCAD/U3GBXLCIamc3PxdPa79Wio=; b=i5q4WhswjfaN1rzhdDdTFuiuoxxXdEcY99MDSIngv9fgr8GHtXiNPsOB96Xc/g91Gg ssRfIt1ugUYchFhLWhdRAsdpawJe0OABgj4RsVWiLmdbyK8QmBFUZ581UOQ4Lk7LSl1T Ld/sDVioqT17rD8koO+zAtsYQkaO0y6kinjCR1lNUTuPLvIs6FfGlmAW2S/JecFps1EA om4/qRE4V+hNx9Pic6TonhePRhelvmOE7coBcu277eWlrYr2eXOqTRYntn0kcfsNhVT7 E0jMXkRzH2ku+Cjg8t0/LXJDDG0MgEjAIDulE2ZexPsRnV4dAMJwFfJdQWP7/eiDj7al Csvg== X-Gm-Message-State: ALoCoQmPmKszxTjmFxACy6jRFOL2eoDJqDoBfPboFixQFLDTQgWqT+c79JPD8QwPSci3bYOI+nZ0 X-Received: by 10.112.198.34 with SMTP id iz2mr1477915lbc.22.1425581331611; Thu, 05 Mar 2015 10:48:51 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.242.132 with SMTP id wq4ls376374lac.30.gmail; Thu, 05 Mar 2015 10:48:51 -0800 (PST) X-Received: by 10.152.10.179 with SMTP id j19mr9763252lab.102.1425581331335; Thu, 05 Mar 2015 10:48:51 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id vs2si1605130lac.87.2015.03.05.10.48.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Mar 2015 10:48:50 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbiv13 with SMTP id v13so34690309lbi.1 for ; Thu, 05 Mar 2015 10:48:50 -0800 (PST) X-Received: by 10.152.43.51 with SMTP id t19mr9236557lal.73.1425581330463; Thu, 05 Mar 2015 10:48:50 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp674879lbj; Thu, 5 Mar 2015 10:48:49 -0800 (PST) X-Received: by 10.55.26.2 with SMTP id a2mr4873832qka.100.1425581329256; Thu, 05 Mar 2015 10:48:49 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id g8si6693803qaz.127.2015.03.05.10.48.47 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Mar 2015 10:48:49 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YTapA-0004Hc-Q9; Thu, 05 Mar 2015 18:48:44 +0000 Received: from mail-qg0-f54.google.com ([209.85.192.54]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YTap4-0004Fh-H6 for lng-odp@lists.linaro.org; Thu, 05 Mar 2015 18:48:38 +0000 Received: by qgdq107 with SMTP id q107so6911898qgd.7 for ; Thu, 05 Mar 2015 10:48:33 -0800 (PST) X-Received: by 10.140.148.216 with SMTP id 207mr14910277qhu.62.1425581313316; Thu, 05 Mar 2015 10:48:33 -0800 (PST) Received: from mike-desktop.?.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id q11sm4286602qad.40.2015.03.05.10.48.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Mar 2015 10:48:32 -0800 (PST) From: Mike Holmes To: stuart.haslam@linaro.org Date: Thu, 5 Mar 2015 13:48:20 -0500 Message-Id: <1425581300-24335-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH] validation: shm: abort on null pointer X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 CU_ASSERT does not exit, use CU_ASSERT_FATAL to ensure the pointer is not used Signed-off-by: Mike Holmes Reviewed-by: Bill Fischofer --- test/validation/odp_shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/odp_shm.c b/test/validation/odp_shm.c index 39dd8f0..1ad00ba 100644 --- a/test/validation/odp_shm.c +++ b/test/validation/odp_shm.c @@ -61,7 +61,7 @@ static void test_odp_shm_sunnyday(void) CU_ASSERT(ODP_SHM_INVALID != shm); test_shared_data = odp_shm_addr(shm); - CU_ASSERT(NULL != test_shared_data); + CU_ASSERT_FATAL(NULL != test_shared_data); test_shared_data->foo = TEST_SHARE_FOO; test_shared_data->bar = TEST_SHARE_BAR;