diff options
author | Michal Koutný <mkoutny@suse.com> | 2023-07-03 19:27:40 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2023-07-10 10:29:23 -1000 |
commit | 12101424d7d26131495bafc2ecfa17d39b8e3c64 (patch) | |
tree | 4852410d28c9c5a6ab23769dad1d4a8956a5d405 /tools/testing/selftests/cgroup/test_core.c | |
parent | cpuset: Allow setscheduler regardless of manipulated task (diff) | |
download | wireguard-linux-12101424d7d26131495bafc2ecfa17d39b8e3c64.tar.xz wireguard-linux-12101424d7d26131495bafc2ecfa17d39b8e3c64.zip |
selftests: cgroup: Minor code reorganizations
No functional change intended, these small changes are merged into one
commit and they serve as a preparation for an upcoming new testcase.
Signed-off-by: Michal Koutný <mkoutny@suse.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/testing/selftests/cgroup/test_core.c')
-rw-r--r-- | tools/testing/selftests/cgroup/test_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/cgroup/test_core.c b/tools/testing/selftests/cgroup/test_core.c index 600123503063..80aa6b2373b9 100644 --- a/tools/testing/selftests/cgroup/test_core.c +++ b/tools/testing/selftests/cgroup/test_core.c @@ -683,7 +683,7 @@ cleanup: */ static int test_cgcore_lesser_euid_open(const char *root) { - const uid_t test_euid = 65534; /* usually nobody, any !root is fine */ + const uid_t test_euid = TEST_UID; int ret = KSFT_FAIL; char *cg_test_a = NULL, *cg_test_b = NULL; char *cg_test_a_procs = NULL, *cg_test_b_procs = NULL; |