From patchwork Fri Oct 24 16:47:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary.robertson@linaro.org X-Patchwork-Id: 39487 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7B6AC20341 for ; Fri, 24 Oct 2014 16:48:30 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b15sf394246eek.9 for ; Fri, 24 Oct 2014 09:48:29 -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: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 :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=5nQNoAlJzmrJZIPSO9LLqu0eU5bwMRpgdg4ENE21N/s=; b=I8w8z/ZLg+VlzYBDgjlqGwhL4FPBPJwrA5A7VHkOVMFhZEowyyn1mOeIRLT1vVACMl ohti0oZJFh/Ozxszv11F7p5szPMbMNB8eL6AgpYK6ZVTyjaz9oEkfKTtWfaDvBF5P+mp kE0x3zN+oNp59zFKL5aj8htf/4ghIWPViY/VP0jDa9Qoa08BAeAI44ySm5edALt1JsE8 GEmTNLGBc7yF2yYw4kfNzHdKckbJLnhZ9ChNR79LygmImgaxVYvCie/N9MTljcO/Xb9l ri6KKVNynnFO+J1dZNqe6q+CwS5lCxvL2iJUxNBzLG7q5KxvD1SYDdyFiNyV1u7DuBwM JRqg== X-Gm-Message-State: ALoCoQk4vR3MhUYDdFb0nvmZ5ZFXb/Vqgqx2/u9JIabyzvQhzQgxpJwKLy4ouf3vJnFUS1/kuUjj X-Received: by 10.152.1.133 with SMTP id 5mr326793lam.8.1414169309529; Fri, 24 Oct 2014 09:48:29 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.82 with SMTP id v18ls443110laz.46.gmail; Fri, 24 Oct 2014 09:48:29 -0700 (PDT) X-Received: by 10.112.167.130 with SMTP id zo2mr5867669lbb.4.1414169309011; Fri, 24 Oct 2014 09:48:29 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id ap3si7857824lbc.33.2014.10.24.09.48.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 24 Oct 2014 09:48:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gq15so3028041lab.12 for ; Fri, 24 Oct 2014 09:48:28 -0700 (PDT) X-Received: by 10.112.189.10 with SMTP id ge10mr5686069lbc.23.1414169308923; Fri, 24 Oct 2014 09:48:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.84.229 with SMTP id c5csp466773lbz; Fri, 24 Oct 2014 09:48:27 -0700 (PDT) X-Received: by 10.107.41.79 with SMTP id p76mr5588400iop.10.1414169307111; Fri, 24 Oct 2014 09:48:27 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id em5si7197538icb.55.2014.10.24.09.48.26 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 24 Oct 2014 09:48:27 -0700 (PDT) Received-SPF: pass (google.com: domain of ltp-list-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Xhi2H-0001QK-Sl; Fri, 24 Oct 2014 16:48:21 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Xhi2G-0001Q6-8q for ltp-list@lists.sourceforge.net; Fri, 24 Oct 2014 16:48:20 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.218.41 as permitted sender) client-ip=209.85.218.41; envelope-from=gary.robertson@linaro.org; helo=mail-oi0-f41.google.com; Received: from mail-oi0-f41.google.com ([209.85.218.41]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Xhi2D-0003de-5c for ltp-list@lists.sourceforge.net; Fri, 24 Oct 2014 16:48:20 +0000 Received: by mail-oi0-f41.google.com with SMTP id u20so628905oif.0 for ; Fri, 24 Oct 2014 09:48:11 -0700 (PDT) X-Received: by 10.202.211.133 with SMTP id k127mr2646684oig.53.1414169291213; Fri, 24 Oct 2014 09:48:11 -0700 (PDT) Received: from honkintosh.cybertech.lan (65-120-133-114.dia.static.qwest.net. [65.120.133.114]) by mx.google.com with ESMTPSA id e73sm2053169oih.3.2014.10.24.09.48.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 24 Oct 2014 09:48:10 -0700 (PDT) From: "Gary S. Robertson" To: jstancek@redhat.com Date: Fri, 24 Oct 2014 11:47:31 -0500 Message-Id: <1414169252-19374-2-git-send-email-gary.robertson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1414169252-19374-1-git-send-email-gary.robertson@linaro.org> References: <90019386.14686839.1414156011036.JavaMail.zimbra@redhat.com> <1414169252-19374-1-git-send-email-gary.robertson@linaro.org> X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1Xhi2D-0003de-5c Cc: ltp-list@lists.sourceforge.net, mike.holmes@linaro.org Subject: [LTP] [PATCH V2] Realtime tests: Fix robust mutex conditionals X-BeenThere: ltp-list@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-list-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: gary.robertson@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.53 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 From: "Gary S. Robertson" sbrk_mutex and testpi-6 realtime tests in subdir testcases/realtime/func/pi-tests used compile time config variables which were not generated by autoconf in order to configure tests for robust mutexes. Changed these conditionals to use the config variables actually created in the autoconf process. Signed-off-by: Gary S. Robertson --- testcases/realtime/func/pi-tests/sbrk_mutex.c | 2 +- testcases/realtime/func/pi-tests/testpi-6.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/realtime/func/pi-tests/sbrk_mutex.c b/testcases/realtime/func/pi-tests/sbrk_mutex.c index 684021f..5c325b4 100644 --- a/testcases/realtime/func/pi-tests/sbrk_mutex.c +++ b/testcases/realtime/func/pi-tests/sbrk_mutex.c @@ -45,7 +45,7 @@ #include #include "librttest.h" -#if defined(HAS_PTHREAD_MUTEXTATTR_ROBUST_APIS) && defined(PTHREAD_MUTEX_ROBUST_NP) +#if HAS_PTHREAD_MUTEXTATTR_ROBUST_APIS #define NUM_MUTEXES 5000 #define NUM_THREADS 50 diff --git a/testcases/realtime/func/pi-tests/testpi-6.c b/testcases/realtime/func/pi-tests/testpi-6.c index b3c3e4a..f715eee 100644 --- a/testcases/realtime/func/pi-tests/testpi-6.c +++ b/testcases/realtime/func/pi-tests/testpi-6.c @@ -41,7 +41,7 @@ #include #include -#if defined(PTHREAD_MUTEX_ROBUST_NP) +#if HAS_PTHREAD_MUTEXTATTR_ROBUST_APIS pthread_mutex_t child_mutex; void *child_thread(void *arg)