From patchwork Fri Apr 4 11:52:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Liebler X-Patchwork-Id: 404 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx21.g.dreamhost.com (peon2454.g.dreamhost.com [208.113.200.127]) by wilcox.dreamhost.com (Postfix) with ESMTP id 411C036009B for ; Fri, 4 Apr 2014 04:52:41 -0700 (PDT) Received: by homiemail-mx21.g.dreamhost.com (Postfix, from userid 14307373) id E120EE49BA5; Fri, 4 Apr 2014 04:52:40 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx21.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx21.g.dreamhost.com (Postfix) with ESMTPS id B277BFFD265 for ; Fri, 4 Apr 2014 04:52:40 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:mime-version :content-type:cc; q=dns; s=default; b=VSiYS5jDLAx2M11R8amwp1Uq33 HnsGDeqTegodzhUOKnLzanXYLwc8MCrpYO7MPvZNlmTI80YvL8VQo560uh7rPrNw UUUvfsOAw2pyyVJpoTqswm3vUgWdUPlKELztTSGyJdolNtODIHdgM33jnH0mP/KP jAuKlgyz+DUVVnIDs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:mime-version :content-type:cc; s=default; bh=FWPSZv7G6A56RiT0nrsAHxqOqGQ=; b= adBnb622VjTdRm2/3ogPQ8vWnmpfOk8WirBGNfGJ0V/CXB54WJH5MUn2i5PLK/8l jZbWE+gwNhGqzyMyaXRzV6y9pPHsQ8cSJme+sb+Pn6+AqY/Tm3HYaqVrKuv1Sj5r rW8xlE42ZF2/+BQwQUgTHaEJSRDkpEPc7MYwH6MM+3M= Received: (qmail 1299 invoked by alias); 4 Apr 2014 11:52:38 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 1279 invoked by uid 89); 4 Apr 2014 11:52:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org To: libc-alpha@sourceware.org From: Stefan Liebler Subject: [PATCH] Correct minimal test suite changes for elision enabled kernels. Date: Fri, 04 Apr 2014 13:52:18 +0200 Lines: 47 Message-ID: <533E9CF2.8030306@linux.vnet.ibm.com> Mime-Version: 1.0 Cc: ak@linux.intel.com, triegel@redhat.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 X-DH-Original-To: glibc@patchwork.siddhesh.in Hi, according to the comment in "Re: [PATCH 03/14] Add minimal test suite changes for elision enabled kernels" (https://www.sourceware.org/ml/libc-alpha/2013-06/msg01145.html), the tests tst-mutex5/8 are changed in order to not check some behaviour of POSIX if lock elision is enabled at configure time. Currently, the timeout of pthread_mutex_timedlock is only tested with elision enabled at configure time and not for the default case. Bye --- 2014-04-04 Stefan Liebler * nptl/tst-mutex5 (do_test): Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef. --- diff --git a/nptl/tst-mutex5.c b/nptl/tst-mutex5.c index 14d3025..a829272 100644 --- a/nptl/tst-mutex5.c +++ b/nptl/tst-mutex5.c @@ -87,7 +87,7 @@ do_test (void) } /* Elided locks do not time out. */ -#ifdef ENABLE_LOCK_ELISION +#ifndef ENABLE_LOCK_ELISION if (pthread_mutex_trylock (&m) == 0) { puts ("mutex_trylock succeeded");