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: 336931 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 ozlabs.org (Postfix) with ESMTPS id 74E5C1400C6 for ; Fri, 4 Apr 2014 22:52:44 +1100 (EST) 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=mfS0x8yf+U412VU3wZkZZXiul/ zKf6nq/6jE1KyWZvkzfdHryEr3QjMvd//T+Wc4bSUAbxd5lAPkkGrjVHMhh7QtRr ur65LFE1wlD9LMgIsReDy1s4/FQQMWV7IGuQCtIo54FivkcpD7zlVt1xKjJm7lSd 4Odl1tkcPLFBnoFow= 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= G7z9mG4+IfNeeelXVJDa3RYxupSXmOxPQpJNpHjpYiAUwGoKDahb4sOprG4BrRu7 HrQLVERloRdZ2tK7YqgKdjCW3jdEwuv6u+oedBQzGyQR+NHt3/8OLjzbRCThTI94 0Ub0RGIK+rFYm1CiLeZyxVcFS5BnMAvD+rxg//NX66U= 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 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");