Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20437649rwd; Thu, 29 Jun 2023 02:12:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4nrqYBEWYcwlDDw31G05Cu2BqHhBsvjuToeEzosSRhrl1pf5U3qYtWbCVLG/tlhCxwlnxW X-Received: by 2002:a05:6a20:3d92:b0:12c:7b4a:5aac with SMTP id s18-20020a056a203d9200b0012c7b4a5aacmr3167225pzi.21.1688029937701; Thu, 29 Jun 2023 02:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688029937; cv=none; d=google.com; s=arc-20160816; b=xt6IkPyzo/HGLGQVvbmDCt2zveI4EBamvTbXjrb43+jmfwN9QMaCAhVsbdCs/6xa+K CTSacyaGL/H+bI4/SGcBarQ1XypVYKYUQqD818yo0R5WFEedj8TY8xQ9mxM67QBsvEZf AvMoobj0vphFwUGhB56Rjlsn23q0a5AtUiKXfLhzFdIF4CwH3toE4Nf0XTQ19Zwupd+a 0IPvQa2Uuw9QOB5vbGIUKjDyy3XC5vkJtgt62qtkq6S+l0GNx0JwWeUF72+joaNrWx8q zqTZxwOpfxCkJfXiOGlifT+5L5+Z+KnMVHR0h+DnoPqLvnGLgHX7kkigZi/w1k4fsKdO pYjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MHbqgSdecim5PkWd0BP78HKImEu6rPurkgjXCEjSjcs=; fh=ljPBbEOseyaz0Gdjb658X2hkCWRjML3IjYS/MO6ol0c=; b=f1mV+49siwcPOZEYvXR8NT/kI9tc0nyDkG7e+K+vrlAsYuhF8q04LdDp2bfulaGRbD b0S8xa5Cs5g69J1slME7YzwAN6BNfNagcVZwQu+MXaD6EUHzox2YhiwxjXfIerGCTtU8 0rq8oKjRc3IkneyPrDqq/9w5EKqK1/Rgy3mjy/scYDqLSBztVX0QcbTA6/ikz5endKqo 6Eu2l7s57vWxZhFLdaHl6RNSB6zstqxmwitYB/3OUbCLQr9dd8lBhlA5ez8Jozyleofl M4wTY6/6+LJ9KJFhpL0cUEvtcbHKITIfMcKdtmXsQtOlpaJi9S1B2tEPUnIweZX+0RXY fzcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=MUrmPvAg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020a056a00234a00b00666e1259fa4si10007873pfj.141.2023.06.29.02.12.04; Thu, 29 Jun 2023 02:12:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=MUrmPvAg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232144AbjF2Ilx (ORCPT + 99 others); Thu, 29 Jun 2023 04:41:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232141AbjF2Iky (ORCPT ); Thu, 29 Jun 2023 04:40:54 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 210CA3C04; Thu, 29 Jun 2023 01:36:16 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2a0c:5a83:9106:d00:e867:262b:7a75:ba57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rcn) by madras.collabora.co.uk (Postfix) with ESMTPSA id A716B660712C; Thu, 29 Jun 2023 09:36:13 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1688027774; bh=FSB3vdthTDE8QsPbEoftdqOjP9tW5sPqQjMaqelHFQ8=; h=From:To:Cc:Subject:Date:From; b=MUrmPvAgIuG6PPwwOcNoSthD0vmMKW4iQZeANxzg5ongiPmat12mOfD08OUxgD2px MoTWfucH3nD7ZjOrjVDiRdzjpR7lVlabsLTQBf74+Sy5eV31bW3ml3gk7x/0PiiXTP ikBCEHC4BQiinXa1XjUBn75ZoCSABOSkHm0E9BhdtcKKY2aWW4DFRyR45czA9uLajT AAy2pg1jTIf3pr6/FgWJ05HqPxTspbExgm9hIYwW0TlGyW4mTFGaxIJPahFl1UT0+b 2sgvv5PVqNVIfrKo8XyyI01lyBgJ5nc0Vx9c0bMvG/3gm4W85kX+igs6npSG43v062 PIl9ouL72DD9A== From: =?UTF-8?q?Ricardo=20Ca=C3=B1uelo?= To: shuah@kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, naresh.kamboju@linaro.org, dan.carpenter@linaro.org, skhan@linuxfoundation.org Subject: [RESEND PATCH] selftests/mincore: fix skip condition for check_huge_pages test Date: Thu, 29 Jun 2023 10:35:46 +0200 Message-Id: <20230629083546.3031488-1-ricardo.canuelo@collabora.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The check_huge_pages test was failing instead of skipping on qemu-armv7 because the skip condition wasn't handled properly. Add an additional check to fix it. Signed-off-by: Ricardo CaƱuelo Reported-by: Naresh Kamboju Reported-by: Linux Kernel Functional Testing Reviewed-by: Muhammad Usama Anjum Tested-by: Anders Roxell Closes: https://lore.kernel.org/all/CA+G9fYuoB8Ug8PcTU-YGmemL7_eeEksXFihvxWF6OikD7sK7pA@mail.gmail.com --- tools/testing/selftests/mincore/mincore_selftest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mincore/mincore_selftest.c b/tools/testing/selftests/mincore/mincore_selftest.c index 4c88238fc8f0..6fb3eea5b6ee 100644 --- a/tools/testing/selftests/mincore/mincore_selftest.c +++ b/tools/testing/selftests/mincore/mincore_selftest.c @@ -150,8 +149,8 @@ TEST(check_huge_pages) MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, -1, 0); if (addr == MAP_FAILED) { - if (errno == ENOMEM) - SKIP(return, "No huge pages available."); + if (errno == ENOMEM || errno == EINVAL) + SKIP(return, "No huge pages available or CONFIG_HUGETLB_PAGE disabled."); else TH_LOG("mmap error: %s", strerror(errno)); } -- 2.25.1