* + selftests-mm-skip-test-if-application-doesnt-has-root-privileges.patch added to mm-unstable branch
@ 2024-01-02 19:22 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2024-01-02 19:22 UTC (permalink / raw)
To: mm-commits, shuah, usama.anjum, akpm
The patch titled
Subject: selftests/mm: skip test if application doesn't has root privileges
has been added to the -mm mm-unstable branch. Its filename is
selftests-mm-skip-test-if-application-doesnt-has-root-privileges.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-mm-skip-test-if-application-doesnt-has-root-privileges.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
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
mm-selftests-hugepage-mremap-conform-test-to-tap-format-output.patch
selftests-mm-gup_test-conform-test-to-tap-format-output.patch
selftests-mm-hugepage-mmap-conform-to-tap-format-output.patch
selftests-mm-conform-test-to-tap-format-output.patch
selftests-mm-skip-test-if-application-doesnt-has-root-privileges.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-02 19:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-02 19:22 + selftests-mm-skip-test-if-application-doesnt-has-root-privileges.patch added to mm-unstable branch 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.