From patchwork Thu Jun 20 11:31:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maarten Lankhorst X-Patchwork-Id: 18025 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ea0-f200.google.com (mail-ea0-f200.google.com [209.85.215.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1AD1B2397B for ; Thu, 20 Jun 2013 11:33:09 +0000 (UTC) Received: by mail-ea0-f200.google.com with SMTP id g15sf5922673eak.7 for ; Thu, 20 Jun 2013 04:33:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:to:from :date:message-id:in-reply-to:references:user-agent:mime-version:cc :subject:x-beenthere:x-mailman-version:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-gm-message-state:x-original-sender :x-original-authentication-results:mailing-list:x-google-group-id :content-type:content-transfer-encoding; bh=kx5fqAjjjxhKLgrEMorYOV948obMqUOnLaSQGSOZu8M=; b=D/gtqYrrsEBY/xSkx7cZJn+1rj9xyVSqHUAv+PXKXSJ2J8J6TJagNgI1EIPd3LFEiT mSK8cTks6o1mENR+Xe68ux5/HIsQy7HpfJ4cozz2idoE1Tpqabw2PIeSQPWtnoR3cFdQ WlNFuRt1R6moDwc7cQWOzrlzAcDLBoB3ll41RAC+wVot4e1SKIpk66pTvW5wkuyMB1b3 m8Us9ZlHI8uOprkm89SySLnFzkGoRaxx+RR8GnZOkETnTl8Vd3hWLowpeMpU0uWqjIU7 z8KOF2TMCONSDyD1fTGRald5pKws2TRQWgaf+C9F+/1Zac6b7zNsGAZEJ32xZpOAjxDO peGQ== X-Received: by 10.180.9.170 with SMTP id a10mr7998126wib.6.1371727987800; Thu, 20 Jun 2013 04:33:07 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.181.13.176 with SMTP id ez16ls120541wid.0.canary; Thu, 20 Jun 2013 04:33:07 -0700 (PDT) X-Received: by 10.180.20.228 with SMTP id q4mr5213935wie.1.1371727987617; Thu, 20 Jun 2013 04:33:07 -0700 (PDT) Received: from mail-ve0-x22b.google.com (mail-ve0-x22b.google.com [2607:f8b0:400c:c01::22b]) by mx.google.com with ESMTPS id h4si11452441wje.6.2013.06.20.04.33.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Jun 2013 04:33:07 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22b; Received: by mail-ve0-f171.google.com with SMTP id b10so4970148vea.16 for ; Thu, 20 Jun 2013 04:33:06 -0700 (PDT) X-Received: by 10.220.53.7 with SMTP id k7mr2450115vcg.52.1371727986537; Thu, 20 Jun 2013 04:33:06 -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.58.165.8 with SMTP id yu8csp17367veb; Thu, 20 Jun 2013 04:33:05 -0700 (PDT) X-Received: by 10.15.100.195 with SMTP id bn43mr6952285eeb.153.1371727984864; Thu, 20 Jun 2013 04:33:04 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id o41si22482982eep.139.2013.06.20.04.33.04 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 20 Jun 2013 04:33:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Upd6l-00045f-I3; Thu, 20 Jun 2013 11:32:55 +0000 Received: from adelie.canonical.com ([91.189.90.139]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Upd6k-000455-9Z for linaro-mm-sig@lists.linaro.org; Thu, 20 Jun 2013 11:32:54 +0000 Received: from lillypilly.canonical.com ([91.189.89.62]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Upd5l-0005EN-Sd; Thu, 20 Jun 2013 11:31:53 +0000 Received: by lillypilly.canonical.com (Postfix, from userid 3489) id D409126C2972; Thu, 20 Jun 2013 11:31:53 +0000 (UTC) To: linux-kernel@vger.kernel.org From: Maarten Lankhorst Date: Thu, 20 Jun 2013 13:31:51 +0200 Message-ID: <20130620113151.4001.77963.stgit@patser> In-Reply-To: <20130620112811.4001.86934.stgit@patser> References: <20130620112811.4001.86934.stgit@patser> User-Agent: StGit/0.15 MIME-Version: 1.0 Cc: linux-arch@vger.kernel.org, peterz@infradead.org, x86@kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, robclark@gmail.com, rostedt@goodmis.org, daniel@ffwll.ch, tglx@linutronix.de, mingo@kernel.org, linux-media@vger.kernel.org Subject: [Linaro-mm-sig] [PATCH v5 7/7] locking-selftests: handle unexpected failures more strictly X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: linaro-mm-sig-bounces@lists.linaro.org Sender: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQnPXxl5UUevAywKAhDv7HgshpXoPF5MsHVBIFySDl7BkIKu5IO48tWtZzm38naPdFk+yFQr X-Original-Sender: maarten.lankhorst@canonical.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 When CONFIG_PROVE_LOCKING is not enabled, more tests are expected to pass unexpectedly, but there no tests that should start to fail that pass with CONFIG_PROVE_LOCKING enabled. Signed-off-by: Maarten Lankhorst --- lib/locking-selftest.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/locking-selftest.c b/lib/locking-selftest.c index d554f3f..aad024d 100644 --- a/lib/locking-selftest.c +++ b/lib/locking-selftest.c @@ -976,16 +976,18 @@ static void dotest(void (*testcase_fn)(void), int expected, int lockclass_mask) /* * Filter out expected failures: */ - if (debug_locks != expected) { #ifndef CONFIG_PROVE_LOCKING + if (expected == FAILURE && debug_locks) { expected_testcase_failures++; printk("failed|"); -#else + } + else +#endif + if (debug_locks != expected) { unexpected_testcase_failures++; printk("FAILED|"); dump_stack(); -#endif } else { testcase_successes++; printk(" ok |");