summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/cgroup/cgroup_util.h
diff options
context:
space:
mode:
authorMichal Koutný <mkoutny@suse.com>2023-07-03 19:27:40 +0200
committerTejun Heo <tj@kernel.org>2023-07-10 10:29:23 -1000
commit12101424d7d26131495bafc2ecfa17d39b8e3c64 (patch)
tree4852410d28c9c5a6ab23769dad1d4a8956a5d405 /tools/testing/selftests/cgroup/cgroup_util.h
parent0a67b847e1f06a70a7b560b69a06b3c78d3e72f0 (diff)
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/cgroup_util.h')
-rw-r--r--tools/testing/selftests/cgroup/cgroup_util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/cgroup/cgroup_util.h b/tools/testing/selftests/cgroup/cgroup_util.h
index c92df4e5d395..1df7f202214a 100644
--- a/tools/testing/selftests/cgroup/cgroup_util.h
+++ b/tools/testing/selftests/cgroup/cgroup_util.h
@@ -11,6 +11,8 @@
#define USEC_PER_SEC 1000000L
#define NSEC_PER_SEC 1000000000L
+#define TEST_UID 65534 /* usually nobody, any !root is fine */
+
/*
* Checks if two given values differ by less than err% of their sum.
*/