From patchwork Tue Sep 30 21:17:32 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: 38181 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 39A6F2032C for ; Tue, 30 Sep 2014 21:24:48 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gq15sf20759lab.7 for ; Tue, 30 Sep 2014 14:24:47 -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: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=q+PfBDyBQVH8tKazaAQ6CWV8NhvW0u67giw6cqHXXwY=; b=Rg1iq3IOjPP2lCB4XlNsKJvUqXVK1pvKFZHBu5D0k0Sbi3wq6NlXuDZB4Z88pVd1r0 EiJBHg3gbhiEVtLO8LSyuOM0KFjqN/I3iHM5w7HYx5ZkWQJLr8z+Af/8m13oxcE+sUtE ByeqYZ33cDNuq/pNOjm6cPbefIaIALyuCHsAzgwbhvvR7oPZKo+tvBzixpRQ2wgB80+Z Xu7/Kpykkkyu5wbJwcCychs5zvX3y94wt5KN2Rqs7jiP/Mmy5w4ya51u66B96WpFs8/V QW2S1E2/6LxeqGRxycxrdbmjiznoNx3KWMS2tlcc1Kko4Ia2Ade3isky4vvnnTEgTIEl rLMw== X-Gm-Message-State: ALoCoQlFHUHyfG80ZTq7iOO1XbNwAF1bgwN2K90aNExI3AYTxeFF6t5ShmWD5H+hJBrUrp6JoG53 X-Received: by 10.152.19.131 with SMTP id f3mr7439020lae.0.1412112286992; Tue, 30 Sep 2014 14:24:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.103 with SMTP id ln7ls85701lac.36.gmail; Tue, 30 Sep 2014 14:24:46 -0700 (PDT) X-Received: by 10.112.134.229 with SMTP id pn5mr21464896lbb.22.1412112286756; Tue, 30 Sep 2014 14:24:46 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by mx.google.com with ESMTPS id mt6si24355809lbb.137.2014.09.30.14.24.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Sep 2014 14:24:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id pn19so5747085lab.0 for ; Tue, 30 Sep 2014 14:24:45 -0700 (PDT) X-Received: by 10.153.6.36 with SMTP id cr4mr15801978lad.40.1412112285933; Tue, 30 Sep 2014 14:24:45 -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.130.169 with SMTP id of9csp425720lbb; Tue, 30 Sep 2014 14:24:45 -0700 (PDT) X-Received: by 10.229.212.138 with SMTP id gs10mr63020333qcb.7.1412112284714; Tue, 30 Sep 2014 14:24:44 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id c17si20230544qae.59.2014.09.30.14.24.44 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 30 Sep 2014 14:24:44 -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 1XZ4uJ-00052z-Ge; Tue, 30 Sep 2014 21:24:28 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XZ4u5-000528-Rl for ltp-list@lists.sourceforge.net; Tue, 30 Sep 2014 21:24:14 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.218.44 as permitted sender) client-ip=209.85.218.44; envelope-from=gary.robertson@linaro.org; helo=mail-oi0-f44.google.com; Received: from mail-oi0-f44.google.com ([209.85.218.44]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1XZ4u3-0006O2-V1 for ltp-list@lists.sourceforge.net; Tue, 30 Sep 2014 21:24:13 +0000 Received: by mail-oi0-f44.google.com with SMTP id x69so3941757oia.3 for ; Tue, 30 Sep 2014 14:24:06 -0700 (PDT) X-Received: by 10.182.142.67 with SMTP id ru3mr51884760obb.15.1412111888865; Tue, 30 Sep 2014 14:18:08 -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 p10sm10109575obk.2.2014.09.30.14.18.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Sep 2014 14:18:07 -0700 (PDT) From: "Gary S. Robertson" To: ltp-list@lists.sourceforge.net Date: Tue, 30 Sep 2014 16:17:32 -0500 Message-Id: <1412111852-22329-1-git-send-email-gary.robertson@linaro.org> X-Mailer: git-send-email 1.7.9.5 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: 1XZ4u3-0006O2-V1 Cc: mike.holmes@linaro.org Subject: [LTP] [PATCH] 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.41 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, testpi-5, 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 generated 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-5.c | 2 +- testcases/realtime/func/pi-tests/testpi-6.c | 2 +- 3 files changed, 3 insertions(+), 3 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-5.c b/testcases/realtime/func/pi-tests/testpi-5.c index a1d93cc..70f02fd 100644 --- a/testcases/realtime/func/pi-tests/testpi-5.c +++ b/testcases/realtime/func/pi-tests/testpi-5.c @@ -69,7 +69,7 @@ int do_test(int argc, char **argv) pthread_mutexattr_t mutexattr; int retc, protocol; -#if HAS_PTHREAD_MUTEXATTR_PROTOCOL_FUNCTIONS +#if HAS_PTHREAD_MUTEXTATTR_ROBUST_APIS if (pthread_mutexattr_init(&mutexattr) != 0) printf("Failed to init mutexattr\n"); 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)