From patchwork Fri Oct 3 15:17:47 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: 38334 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DCB832057C for ; Fri, 3 Oct 2014 15:18:58 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id d17sf944424eek.10 for ; Fri, 03 Oct 2014 08:18: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:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=WNyJ1mH9F8wK0pmzYrp7mu9fUYY1bN7hugqgv+QJvvQ=; b=gkN1ig1oz8supayTSQJs161DT3M3z9HT8rAhAkeo0unr6DwI8Wbs0+UTqRySPO76X1 po5I68x7jUN9njIIg2CqLZuGonp1cZluPZy1QHGIsp8sOtVCNvF81x+7RPO2VtGqTGuZ mcabKPTDaRbuCPFcMlbaH23KoWPmE8xt7VgnKGdzoWYUJTmKZvZgQGM/0Drbxw+83ORo mXMN5rfqvoCYfvSPwu3VuVbUGgV4F5E8vVgoeWOCl17U7Ff0YqGr+qp08q6TMXhqfPy5 3ib7JF/irWp54Lh4txBHv4ZjzUak1JK0O4e0LiM9IRxBLuYZA6wWmZp3D58IW++mdctI h/aA== X-Gm-Message-State: ALoCoQkB8swQmimtZqyPccAeWGW22PERN7KGh+oILr3hpc1dPuZQtDU1ZuIlN51nWdVoJXUAhW3/ X-Received: by 10.112.158.73 with SMTP id ws9mr54867lbb.22.1412349537933; Fri, 03 Oct 2014 08:18:57 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.72 with SMTP id i8ls272450lai.25.gmail; Fri, 03 Oct 2014 08:18:57 -0700 (PDT) X-Received: by 10.112.134.229 with SMTP id pn5mr6447141lbb.22.1412349537694; Fri, 03 Oct 2014 08:18:57 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by mx.google.com with ESMTPS id ks12si11782810lac.5.2014.10.03.08.18.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 Oct 2014 08:18:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id w7so1179000lbi.37 for ; Fri, 03 Oct 2014 08:18:57 -0700 (PDT) X-Received: by 10.112.4.33 with SMTP id h1mr6110900lbh.67.1412349537557; Fri, 03 Oct 2014 08:18: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.130.169 with SMTP id of9csp247318lbb; Fri, 3 Oct 2014 08:18:56 -0700 (PDT) X-Received: by 10.68.68.173 with SMTP id x13mr7940135pbt.84.1412349536077; Fri, 03 Oct 2014 08:18:56 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id ef7si7512426pac.71.2014.10.03.08.18.55 for ; Fri, 03 Oct 2014 08:18:56 -0700 (PDT) Received-SPF: none (google.com: openembedded-core-bounces@lists.openembedded.org does not designate permitted sender hosts) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 7B2B471770; Fri, 3 Oct 2014 15:18:53 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) by mail.openembedded.org (Postfix) with ESMTP id AE9957171D for ; Fri, 3 Oct 2014 15:18:21 +0000 (UTC) Received: by mail-ob0-f169.google.com with SMTP id m8so1051222obr.0 for ; Fri, 03 Oct 2014 08:18:22 -0700 (PDT) X-Received: by 10.182.105.163 with SMTP id gn3mr2360031obb.7.1412349502549; Fri, 03 Oct 2014 08:18:22 -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 rw6sm4452660obb.28.2014.10.03.08.18.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 Oct 2014 08:18:21 -0700 (PDT) From: "Gary S. Robertson" To: openembedded-core@lists.openembedded.org Date: Fri, 3 Oct 2014 10:17:47 -0500 Message-Id: <1412349468-1146-2-git-send-email-gary.robertson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1412349468-1146-1-git-send-email-gary.robertson@linaro.org> References: <1412349468-1146-1-git-send-email-gary.robertson@linaro.org> Cc: mike.holmes@linaro.org Subject: [OE-core] [OE-CORE][PATCH 1/2] LTP - realtime tests - fix bad PI mutex conditionals X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org 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.217.178 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" The priority inheritance tests for mutexes used conditional variables which were non-existent. Changed the conditional clauses to use the variables which were actually generated by LTP autoconf for that purpose. Signed-off-by: Gary S. Robertson --- ...sts-Fix-bad-priority-inheritance-conditio.patch | 48 ++++++++++++++++++++ meta/recipes-extended/ltp/ltp_20140422.bb | 1 + 2 files changed, 49 insertions(+) create mode 100644 meta/recipes-extended/ltp/ltp/0001-Realtime-tests-Fix-bad-priority-inheritance-conditio.patch diff --git a/meta/recipes-extended/ltp/ltp/0001-Realtime-tests-Fix-bad-priority-inheritance-conditio.patch b/meta/recipes-extended/ltp/ltp/0001-Realtime-tests-Fix-bad-priority-inheritance-conditio.patch new file mode 100644 index 0000000..fa20b08 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-Realtime-tests-Fix-bad-priority-inheritance-conditio.patch @@ -0,0 +1,48 @@ +From b601a8d1b39075a5339195fc0a4038f71ec3b49e Mon Sep 17 00:00:00 2001 +From: "Gary S. Robertson" +Date: Wed, 27 Aug 2014 16:23:56 -0500 +Subject: [LTP][PATCH] Realtime tests: Fix bad priority inheritance conditionals + +testcases/realtime/lib/librttest.c and +testcases/realtime/stress/pi-tests/testpi-3.c +both referenced a non-existent autoconf configuration setting variable. +Replaced the invalid variable name with the variable actually created +by autoconf. + +Upstream-Status: Submitted + +Signed-off-by: Gary S. Robertson +--- + testcases/realtime/lib/librttest.c | 2 +- + testcases/realtime/stress/pi-tests/testpi-3.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/testcases/realtime/lib/librttest.c b/testcases/realtime/lib/librttest.c +index c175148..3679058 100644 +--- a/testcases/realtime/lib/librttest.c ++++ b/testcases/realtime/lib/librttest.c +@@ -586,7 +586,7 @@ void *busy_work_us(int us) + + void init_pi_mutex(pthread_mutex_t * m) + { +-#if HAVE_DECL_PTHREAD_PRIO_INHERIT ++#if HAS_PRIORITY_INHERIT + pthread_mutexattr_t attr; + int ret; + int protocol; +diff --git a/testcases/realtime/stress/pi-tests/testpi-3.c b/testcases/realtime/stress/pi-tests/testpi-3.c +index 30f38f6..e483945 100644 +--- a/testcases/realtime/stress/pi-tests/testpi-3.c ++++ b/testcases/realtime/stress/pi-tests/testpi-3.c +@@ -365,7 +365,7 @@ int main(int argc, char *argv[]) + + printf("Start %s\n", argv[0]); + +-#if HAVE_DECL_PTHREAD_PRIO_INHERIT ++#if HAS_PRIORITY_INHERIT + if (!nopi) { + pthread_mutexattr_t mutexattr; + int protocol; +-- +1.7.9.5 + diff --git a/meta/recipes-extended/ltp/ltp_20140422.bb b/meta/recipes-extended/ltp/ltp_20140422.bb index 5870352..fa42358 100644 --- a/meta/recipes-extended/ltp/ltp_20140422.bb +++ b/meta/recipes-extended/ltp/ltp_20140422.bb @@ -28,6 +28,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ file://automake-foreign.patch \ file://make-setregid02-work.patch \ file://add-knob-for-numa.patch \ + file://0001-Realtime-tests-Fix-bad-priority-inheritance-conditio.patch \ " S = "${WORKDIR}/git"