Message ID | 20240101083614.1076768-2-usama.anjum@collabora.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 0CE3EC4706F for <linux-mm@archiver.kernel.org>; Mon, 1 Jan 2024 08:36:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 524236B0195; Mon, 1 Jan 2024 03:36:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4D4D96B0196; Mon, 1 Jan 2024 03:36:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3C3326B0197; Mon, 1 Jan 2024 03:36:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 2D66E6B0195 for <linux-mm@kvack.org>; Mon, 1 Jan 2024 03:36:26 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id D469B405C0 for <linux-mm@kvack.org>; Mon, 1 Jan 2024 08:36:25 +0000 (UTC) X-FDA: 81630085530.10.CAC0CCA Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) by imf13.hostedemail.com (Postfix) with ESMTP id 38B512001D for <linux-mm@kvack.org>; Mon, 1 Jan 2024 08:36:23 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b="mJ5H00/h"; spf=pass (imf13.hostedemail.com: domain of usama.anjum@collabora.com designates 46.235.227.194 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass (policy=quarantine) header.from=collabora.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1704098184; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=fXgVIMW3zsuKjeqFUyQYUY8CiLbJ9ZJoTUgFE6XA/tI=; b=iJ5kULMj9Sgzo8/ygDGbTPNT+ZgczjyrDCwwMOdrlF3yxA5lplIp6bKyvc1ca01yXt8Jbg WOLxN+JIY2dPctcpE2lughr/ghuig0GC98dJ41PNwz5C5zYJfHFdo0Ss/5flF/LYYrt8iq hSUTUZn9rfKhFniRy3WJkxbvIFtRhig= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b="mJ5H00/h"; spf=pass (imf13.hostedemail.com: domain of usama.anjum@collabora.com designates 46.235.227.194 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass (policy=quarantine) header.from=collabora.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1704098184; a=rsa-sha256; cv=none; b=nbm1h5NPHmXICQTdiKmy6pim1hbn4xdXcxrk725cDK3Z2SzW6Sa3bjYNGfkgowvB8UH2Bz 9r5oRIMtoobZRSpi60ENF+ZixKJDoQspuckEwhTmnknuTMulun71D0POvPSkYx2SgU9yrC FrSkcpCvNwOs1o3GaYUqjhH18xFiZx0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704098183; bh=giHGWwDeltvyjzRJyE60kEU8wo+8AOWtU2n4rpsZokA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mJ5H00/hzYa7ecJ8yDwgc+W5yoNyAGqahFf2l+LnINskO8F7x2swpkhkcqzQeuomo wy5BCXS+iB16I2qtXXD0d5R36w5bYjTWwtXhjZse9YYzyOedJ/mJrIRiyAejGk4hPX QQVNXSuyTOGs9fvp8JPi5WWbT8hOO0c9YiuGy3Un1Eff82GApXYA6XuNPHO/VxYgUk HMBxwUdf32sqyIt/1lhe407G2ciTAmHBgWtTseS4kornAhmbqSRGBkGrVGWN+0xkfD ePybNEAuihCMN8hf9k4dw04GkfAl71aelQ5iEUnuh9phQQNB0v3Nqe8tifym2B3QAE zcT/Uq4MH85Nw== Received: from localhost.localdomain (cola.collaboradmins.com [195.201.22.229]) (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: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 6592B3780894; Mon, 1 Jan 2024 08:36:20 +0000 (UTC) From: Muhammad Usama Anjum <usama.anjum@collabora.com> To: Andrew Morton <akpm@linux-foundation.org>, Shuah Khan <shuah@kernel.org> Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>, kernel@collabora.com, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] selftests/mm: skip test if application doesn't has root privileges Date: Mon, 1 Jan 2024 13:36:13 +0500 Message-ID: <20240101083614.1076768-2-usama.anjum@collabora.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240101083614.1076768-1-usama.anjum@collabora.com> References: <20240101083614.1076768-1-usama.anjum@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 38B512001D X-Rspam-User: X-Stat-Signature: jjtryh7kww9d48b1sudy5o8ysiq7y5cg X-Rspamd-Server: rspam01 X-HE-Tag: 1704098183-957591 X-HE-Meta: U2FsdGVkX18CRKvbp4fX3KuC5DX/RLOzNp9Zkxm8HQvqfE8UsjApnHpXOwD7eZIg6FjKrFpsBKX2HnTe/wbIY84EGBBFW1rex99whznpjjIVob0R7WxyobtuNBqBuq92dFBt1mhsuiLk/fE0BpHJvCiGVogUGK4c0yPU8CMooSwESUuFqmYR5kVdp7QNBFjFpqUZhOp68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000045, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
[1/2] selftests/mm: conform test to TAP format output
|
expand
|
diff --git a/tools/testing/selftests/mm/compaction_test.c b/tools/testing/selftests/mm/compaction_test.c index 707b0809b717..656afba02dbc 100644 --- a/tools/testing/selftests/mm/compaction_test.c +++ b/tools/testing/selftests/mm/compaction_test.c @@ -173,7 +173,7 @@ int main(int argc, char **argv) ksft_print_header(); - if (prereq() != 0) + if (prereq() || geteuid()) return ksft_exit_pass(); ksft_set_plan(1);
The test depends on writing to nr_hugepages which isn't possible without root privileges. So skip the test in this case. Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> --- tools/testing/selftests/mm/compaction_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)