* [merged mm-stable] selftests-mm-skip-test-if-application-doesnt-has-root-privileges.patch removed from -mm tree
@ 2024-01-05 18:18 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2024-01-05 18:18 UTC (permalink / raw)
To: mm-commits, shuah, usama.anjum, akpm
The quilt patch titled
Subject: selftests/mm: skip test if application doesn't has root privileges
has been removed from the -mm tree. Its filename was
selftests-mm-skip-test-if-application-doesnt-has-root-privileges.patch
This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Muhammad Usama Anjum <usama.anjum@collabora.com>
Subject: selftests/mm: skip test if application doesn't has root privileges
Date: Mon, 1 Jan 2024 13:36:13 +0500
The test depends on writing to nr_hugepages which isn't possible without
root privileges. So skip the test in this case.
Link: https://lkml.kernel.org/r/20240101083614.1076768-2-usama.anjum@collabora.com
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
tools/testing/selftests/mm/compaction_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/mm/compaction_test.c~selftests-mm-skip-test-if-application-doesnt-has-root-privileges
+++ a/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);
_
Patches currently in -mm which might be from usama.anjum@collabora.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-05 18:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-05 18:18 [merged mm-stable] selftests-mm-skip-test-if-application-doesnt-has-root-privileges.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.