From patchwork Thu Apr 21 23:35:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12822491 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78060C43219 for ; Thu, 21 Apr 2022 23:35:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0B98E6B007E; Thu, 21 Apr 2022 19:35:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 066C36B0080; Thu, 21 Apr 2022 19:35:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DFCF76B0081; Thu, 21 Apr 2022 19:35:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id D15966B007E for ; Thu, 21 Apr 2022 19:35:57 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id A12A812014A for ; Thu, 21 Apr 2022 23:35:57 +0000 (UTC) X-FDA: 79382496354.10.E8AA84C Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf16.hostedemail.com (Postfix) with ESMTP id AF64918001B for ; Thu, 21 Apr 2022 23:35:55 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7846961EC1; Thu, 21 Apr 2022 23:35:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB9CAC385A7; Thu, 21 Apr 2022 23:35:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1650584155; bh=0saNveK0MxhvPf4d1SYMocPo57hTU9uX4KMm4m3Ue5Q=; h=Date:To:From:In-Reply-To:Subject:From; b=mUUWIIE/WDFo1ABXAeSqZ/ITgxk8haRigHVnbxYyyEsxrwo6musD4bxr2KFwUIgMZ 3Nuk7fG5qJ+HaZq2spFaWHMBLY6PtMP1pVH5XfK1lzAoXRY8kDpNDZzqQxYNApoLxX E4U2I1gA6vQJIwkJfHHACmXHsykPXWe6HeOOFs6E= Date: Thu, 21 Apr 2022 16:35:55 -0700 To: skhan@linuxfoundation.org,sidhartha.kumar@oracle.com,akpm@linux-foundation.org,patches@lists.linux.dev,linux-mm@kvack.org,mm-commits@vger.kernel.org,torvalds@linux-foundation.org,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20220421163508.66028a9ac2d9fb6ea05b1342@linux-foundation.org> Subject: [patch 08/13] selftest/vm: support xfail in mremap_test Message-Id: <20220421233555.CB9CAC385A7@smtp.kernel.org> X-Stat-Signature: w94gj3jyiyhjyosbh8rg3uefmd86brnf X-Rspam-User: Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b="mUUWIIE/"; dmarc=none; spf=pass (imf16.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: AF64918001B X-HE-Tag: 1650584155-350086 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Sidhartha Kumar Subject: selftest/vm: support xfail in mremap_test Use ksft_test_result_xfail for the tests which are expected to fail. Link: https://lkml.kernel.org/r/20220420215721.4868-3-sidhartha.kumar@oracle.com Signed-off-by: Sidhartha Kumar Reviewed-by: Shuah Khan Signed-off-by: Andrew Morton --- tools/testing/selftests/vm/mremap_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/vm/mremap_test.c~selftest-vm-support-xfail-in-mremap_test +++ a/tools/testing/selftests/vm/mremap_test.c @@ -268,7 +268,7 @@ static void run_mremap_test_case(struct if (remap_time < 0) { if (test_case.expect_failure) - ksft_test_result_pass("%s\n\tExpected mremap failure\n", + ksft_test_result_xfail("%s\n\tExpected mremap failure\n", test_case.name); else { ksft_test_result_fail("%s\n", test_case.name);