From patchwork Thu Mar 15 14:45:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10284625 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 045B160291 for ; Thu, 15 Mar 2018 14:46:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC31D28AED for ; Thu, 15 Mar 2018 14:46:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E0BF628AF0; Thu, 15 Mar 2018 14:46:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7850128AED for ; Thu, 15 Mar 2018 14:46:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932377AbeCOOqR (ORCPT ); Thu, 15 Mar 2018 10:46:17 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:37923 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932333AbeCOOqO (ORCPT ); Thu, 15 Mar 2018 10:46:14 -0400 Received: by mail-wr0-f195.google.com with SMTP id l8so8577983wrg.5 for ; Thu, 15 Mar 2018 07:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Djvq7rAg/3SWwW6+/cjSN8+gXMi8SpEJPkQvoWQbD9U=; b=tav6pjgnFZmug5jhrHX+aL/WtnrHb41HLvTr/2oD7AwlROm9ryxvRKTeH2LhsbIWGG 3jih3P1N+xHv6sW5vhmX678gV3Cm1OM8hCjnzHpWCX+713sUN92/m5gwWUIfz+8TqWvD 3eu3h0aCehH5xpSmDzpIOP5/mJnTWW4KGrk+rxZDXs4uTfgTL7Yzy5CZBnAP4utjIVwS AItIrBex/CodkUvbl6+XPL2nSYPOJ4dXZdTW+R/WAg69laUnkY2ASx6rvtLHs1t6GU94 oxJupmFiPolI/BalVOzeM8aj9wltWFNfEM3bx6xbIDZc11S/4oXgKGFtmDZF6g/WwFwf HN1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Djvq7rAg/3SWwW6+/cjSN8+gXMi8SpEJPkQvoWQbD9U=; b=o+IsWEM0CNsb0bOC4kY/+8cQKrumGcLIz+Hl4iRSq3WeKXDWrT2j+sVjakHXjObLZl IGIa4aVZyTYZnr01dNLqdKyzGAEadlitXLiphOrxYWW13jk4eBLBslrIgj3XM0lgwl2I axlledRuViCeLmI8/e+NJuIebb8gDLLI+2npcDG+rbvuHuNqR1qnXSwlpjycJdxYczBw yL6kfwnOIZr0qf8qPi0dfSD++c3ydut7bJObQboz/76auZVsaSSMrRcOMkLZJ3kwaJQd C7upJIY7cZ+jveDLhAYV2HKbWHS07BXgzsFcIRJbniWC9gsMwSplN+CfM/807V7ulOxd w2mw== X-Gm-Message-State: AElRT7GMuBxxklw4bPW165DjC+m0GC2DxiEJ0Bfcj6cavSFNeleNeprl ENizkW6nugqaPA/BTKnCKA== X-Google-Smtp-Source: AG47ELt/3Cbf/v4kmn/VsVH8bfO1eGBO+bt/zeIUGCK0kUDPWe+2nATBZF4TU+KeVX8xcYSe1wzhHw== X-Received: by 10.223.195.116 with SMTP id e49mr7330459wrg.5.1521125172843; Thu, 15 Mar 2018 07:46:12 -0700 (PDT) Received: from groucho.site (ipbcc0ce2f.dynamic.kabel-deutschland.de. [188.192.206.47]) by smtp.gmail.com with ESMTPSA id m71sm4340486wmd.6.2018.03.15.07.46.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Mar 2018 07:46:12 -0700 (PDT) From: Ulrich Hecht To: intel-gfx@lists.freedesktop.org Cc: linux-renesas-soc@vger.kernel.org, laurent.pinchart@ideasonboard.com, Ulrich Hecht Subject: [PATCH igt 6/8] lib/igt_pm: turn absence of autosuspend_delay_ms from fail to skip Date: Thu, 15 Mar 2018 15:45:42 +0100 Message-Id: <1521125144-28614-7-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521125144-28614-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1521125144-28614-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes false negatives on everything that doesn't happen to be at a specific hard-coded sysfs path... Signed-off-by: Ulrich Hecht --- lib/igt_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/igt_pm.c b/lib/igt_pm.c index 5bf5b2e..641157b 100644 --- a/lib/igt_pm.c +++ b/lib/igt_pm.c @@ -262,7 +262,7 @@ bool igt_setup_runtime_pm(void) * suite goes faster and we have a higher probability of triggering race * conditions. */ fd = open(POWER_DIR "/autosuspend_delay_ms", O_WRONLY); - igt_assert_f(fd >= 0, + igt_require_f(fd >= 0, "Can't open " POWER_DIR "/autosuspend_delay_ms\n"); /* If we fail to write to the file, it means this system doesn't support