From patchwork Fri Jul 3 14:27:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50634 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8910222916 for ; Fri, 3 Jul 2015 14:28:59 +0000 (UTC) Received: by wiar9 with SMTP id r9sf33379335wia.1 for ; Fri, 03 Jul 2015 07:28:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references: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=1rOwyOW+wYrMAXo7M0ugRJokK4bmZxhdqLblv8YliqM=; b=RSACh8aXiWlv7YvIzP4KEAtotA5ZuhDzpMKWhi9l0xhrbwhwPyRnkM7ndu2K9fuZMl EvdAmv6pRCaWKtBdtjPRwvGMhco30H9axBXMJyOo7ymmcUslBYFS1xZB8XP2zEomjBo1 ycsF1CLAHC06xdv41Wxp43xXpmz/K5BlZn+niEXA6wAXRDIqud0RRzOJ5XP8a86cZ5TG M/bZGyp+r5rLCkawGnUVoVP6bF1q+N8qgIXYF8IxbNtJXvzglKFEcO5ZPOKDANgCICLQ /mrnCzuTLNKEMKLfUdcRCE8arrEye3mK71kYkLbGS2YUjKpszJhYJz2NlRKfyr6hN2Iv y0qg== X-Gm-Message-State: ALoCoQlve5B4POazNBuKq3fso0D9DsoEVHLmKhHIBP9diTYDcY8BvrU/nNWukn6Dr2pT1tiOQFR7 X-Received: by 10.180.37.198 with SMTP id a6mr7575383wik.7.1435933738892; Fri, 03 Jul 2015 07:28:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.227 with SMTP id t3ls494334laj.72.gmail; Fri, 03 Jul 2015 07:28:58 -0700 (PDT) X-Received: by 10.152.42.134 with SMTP id o6mr36535271lal.14.1435933738225; Fri, 03 Jul 2015 07:28:58 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id qa7si7377996lbc.18.2015.07.03.07.28.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jul 2015 07:28:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by laar3 with SMTP id r3so87496052laa.0 for ; Fri, 03 Jul 2015 07:28:58 -0700 (PDT) X-Received: by 10.112.204.6 with SMTP id ku6mr36303780lbc.73.1435933737994; Fri, 03 Jul 2015 07:28:57 -0700 (PDT) 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.108.230 with SMTP id hn6csp68699lbb; Fri, 3 Jul 2015 07:28:57 -0700 (PDT) X-Received: by 10.140.30.100 with SMTP id c91mr51339786qgc.81.1435933736728; Fri, 03 Jul 2015 07:28:56 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o7si10538859qko.19.2015.07.03.07.28.55; Fri, 03 Jul 2015 07:28:56 -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; Received: by lists.linaro.org (Postfix, from userid 109) id 43E5A61FEB; Fri, 3 Jul 2015 14:28:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 0705662056; Fri, 3 Jul 2015 14:27:58 +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 9362E61CD1; Fri, 3 Jul 2015 14:27:52 +0000 (UTC) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by lists.linaro.org (Postfix) with ESMTPS id 658CD61CD1 for ; Fri, 3 Jul 2015 14:27:51 +0000 (UTC) Received: by lagh6 with SMTP id h6so87303339lag.2 for ; Fri, 03 Jul 2015 07:27:50 -0700 (PDT) X-Received: by 10.152.36.161 with SMTP id r1mr36133662laj.88.1435933670282; Fri, 03 Jul 2015 07:27:50 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by mx.google.com with ESMTPSA id j2sm2371261lag.10.2015.07.03.07.27.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Jul 2015 07:27:49 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Fri, 3 Jul 2015 16:27:34 +0200 Message-Id: <1435933656-6848-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435933656-6848-1-git-send-email-christophe.milard@linaro.org> References: <1435933656-6848-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 2/4] validation: renaming in odp_shared_memory.c X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christophe.milard@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.215.52 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 Renaming of things which may be, one day, exported in a lib. This renaming is important, as it creates consistency between test symbols, which is needed if things get eventually exported in the lib. Also, tests are often created from other tests: Fixing the first exemples will help geting future tests better. Things that are candidate to be exported in the lib in the future have been named as follows: -Tests, i.e. functions which are used in CUNIT testsuites are named: _test_* -Test arrays, i.e. arrays of CU_TestInfo, listing the test functions belonging to a suite, are called: _suite[_*] where the possible suffix can be used if many suites are declared. -CUNIT suite init and termination functions are called: _suite[_*]_init() and _suite[_*]_term() respectively. -Suite arrays, i.e. arrays of CU_SuiteInfo used in executables are called: _suites[_*] where the possible suffix identifies the executable using it, if many. -Main function(s), are called: _main[_*] where the possible suffix identifies the executable using it Signed-off-by: Christophe Milard --- test/validation/odp_shared_memory.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/validation/odp_shared_memory.c b/test/validation/odp_shared_memory.c index b7f431a..050e3e5 100644 --- a/test/validation/odp_shared_memory.c +++ b/test/validation/odp_shared_memory.c @@ -43,7 +43,7 @@ static void *run_shm_thread(void *arg) return arg; } -static void test_odp_shm_sunnyday(void) +static void shmem_test_odp_shm_sunnyday(void) { pthrd_arg thrdarg; odp_shm_t shm; @@ -75,13 +75,13 @@ static void test_odp_shm_sunnyday(void) odp_cunit_thread_exit(&thrdarg); } -static CU_TestInfo test_odp_shm[] = { - {"test_odp_shm_creat", test_odp_shm_sunnyday}, +static CU_TestInfo shmem_suite[] = { + {"test_odp_shm_creat", shmem_test_odp_shm_sunnyday}, CU_TEST_INFO_NULL, }; static CU_SuiteInfo shmem_suites[] = { - {"Shared Memory", NULL, NULL, NULL, NULL, test_odp_shm}, + {"Shared Memory", NULL, NULL, NULL, NULL, shmem_suite}, CU_SUITE_INFO_NULL, };