From patchwork Fri Apr 1 09:47:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 64837 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp608919lbc; Fri, 1 Apr 2016 01:47:55 -0700 (PDT) X-Received: by 10.140.165.205 with SMTP id l196mr25012780qhl.58.1459500475844; Fri, 01 Apr 2016 01:47:55 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y201si11168593qka.90.2016.04.01.01.47.55; Fri, 01 Apr 2016 01:47:55 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 5940261B4F; Fri, 1 Apr 2016 08:47:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 00B6E6157E; Fri, 1 Apr 2016 08:47:52 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B4F616107B; Fri, 1 Apr 2016 08:47:49 +0000 (UTC) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by lists.linaro.org (Postfix) with ESMTPS id AAF0660AB8 for ; Fri, 1 Apr 2016 08:47:48 +0000 (UTC) Received: by mail-lb0-f176.google.com with SMTP id u8so67807233lbk.0 for ; Fri, 01 Apr 2016 01:47:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4Qy1gL/XJwplKLamo2aFWh6Q0/vZeEyxGNWPYbr/FKs=; b=cBz3S6LewvUBfHgwciIWnJzwFiVDPQKgO6NlvnjHXuDzShl8R70FVbPbxqkaSS6T1l 0GC4dQBSAIFcvUyNqgCJKA5g9frG6X7Oxq9odBrHlhzhQwXMV8nmz7bozqFup5fNHw2j gGEWAh72xn2TOGhAguBhzZati/cNjbdN2hegfxujZ55nyyhhK8A1Q+f4V1kl/q4jVJCU uHzEy9uLH/pixakKrJKPkXvNoQVKPPVWx27bpUgEaKBJtigT/B5Cn9cSXPcQ3w6DqWEt MubsCRz+NInBoGcuMp2Xnk9SORR385lHTCKU9E+wQlGFhYWYlAXHnlukx+E90CtOd21x MunA== X-Gm-Message-State: AD7BkJKj0/QETuTaKHJOODfMOD59/H5RcXiPxuPScbPFIp1CnXNmEexb8UGCzVZzxCU1H0UhG/A= X-Received: by 10.112.50.144 with SMTP id c16mr1342221lbo.128.1459500467289; Fri, 01 Apr 2016 01:47:47 -0700 (PDT) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id m141sm2026239lfb.12.2016.04.01.01.47.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Apr 2016 01:47:46 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, bill.fischofer@linaro.org Date: Fri, 1 Apr 2016 11:47:11 +0200 Message-Id: <1459504031-4733-1-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2] linux-generic: test: shmem: close fifo X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" 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" Fixes: https://bugs.linaro.org/show_bug.cgi?id=2147 (CID 159394) The fifo is closed at end of test Signed-off-by: Christophe Milard Reviewed-by: Mike Holmes --- since v1: bug URL added in commit msg (Anders) platform/linux-generic/test/shmem/shmem_odp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linux-generic/test/shmem/shmem_odp.c b/platform/linux-generic/test/shmem/shmem_odp.c index df1d3ff..a1f750f 100644 --- a/platform/linux-generic/test/shmem/shmem_odp.c +++ b/platform/linux-generic/test/shmem/shmem_odp.c @@ -48,6 +48,7 @@ void shmem_test_odp_shm_proc(void) CU_ASSERT_FATAL(fd >= 0); CU_ASSERT(read(fd, &test_result, sizeof(char)) == 1); + close(fd); CU_ASSERT_FATAL(test_result == TEST_SUCCESS); CU_ASSERT(odp_shm_free(shm) == 0);