linux/tools/testing/selftests/cgroup
Michal Koutný 3b0dec689a selftests: cgroup: Make test_pids backwards compatible
The predicates in test expect event counting from 73e75e6fc3
("cgroup/pids: Separate semantics of pids.events related to pids.max")
and the test would fail on older kernels. We want to have one version of
tests for all, so detect the feature and skip the test on old kernels.
(The test could even switch to check v1 semantics based on the flag but
keep it simple for now.)

Fixes: 9f34c56602 ("selftests: cgroup: Add basic tests for pids controller")
Signed-off-by: Michal Koutný <mkoutny@suse.com>
Tested-by: Sebastian Chlad <sebastian.chlad@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2025-08-27 05:59:52 -10:00
..
lib selftests: cgroup: Make test_pids backwards compatible 2025-08-27 05:59:52 -10:00
.gitignore selftests: cgroup: Add basic tests for pids controller 2024-05-26 08:45:10 -10:00
Makefile cgroup: selftests: Move cgroup_util into its own library 2025-05-16 11:45:15 -07:00
config mm: remove CONFIG_MEMCG_KMEM 2024-07-10 12:14:54 -07:00
memcg_protection.m selftests: memcg: adjust expected reclaim values of protected cgroups 2022-05-27 09:33:45 -07:00
test_core.c selftests: cgroup: Fix compilation on pre-cgroupns kernels 2025-06-17 08:13:25 -10:00
test_cpu.c selftests/cgroup: fix cpu.max tests 2025-07-17 08:12:19 -10:00
test_cpuset.c selftests: cgroup: skip test_cgcore_lesser_ns_open when cgroup2 mounted without nsdelegate 2024-04-03 09:42:13 -10:00
test_cpuset_prs.sh selftest/cgroup: Add a remote partition transition test to test_cpuset_prs.sh 2025-03-31 13:28:19 -10:00
test_cpuset_v1_base.sh cgroup/cpuset: add sefltest for cpuset v1 2024-08-30 10:00:17 -10:00
test_cpuset_v1_hp.sh selftests/cgroup: use bash in test_cpuset_v1_hp.sh 2025-02-04 09:36:54 -10:00
test_freezer.c cgroup: selftests: Add tests for freezer time 2025-08-22 07:50:52 -10:00
test_hugetlb_memcg.c Revert "selftests/cgroup: Drop define _GNU_SOURCE" 2024-05-20 09:00:15 -06:00
test_kill.c selftests: cgroup: skip test_cgcore_lesser_ns_open when cgroup2 mounted without nsdelegate 2024-04-03 09:42:13 -10:00
test_kmem.c selftests: cgroup: Allow longer timeout for kmem_dead_cgroups cleanup 2025-07-12 07:34:49 -10:00
test_memcontrol.c Generic: 2025-06-02 12:24:58 -07:00
test_pids.c selftests: cgroup: Make test_pids backwards compatible 2025-08-27 05:59:52 -10:00
test_stress.sh kseltest/cgroup: Make test_stress.sh work if run interactively 2022-05-13 09:33:21 -10:00
test_zswap.c selftests: cgroup: Fix missing newline in test_zswap_writeback_one 2025-07-12 07:35:30 -10:00
wait_inotify.c kselftest/cgroup: Add cpuset v2 partition root state test 2022-09-04 10:47:28 -10:00
with_stress.sh selftests: cgroup: Run test_core under interfering stress 2019-10-07 07:11:54 -07:00