diff options
author | Michal Koutný <mkoutny@suse.com> | 2025-08-27 17:53:00 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2025-08-27 05:59:52 -1000 |
commit | 3b0dec689a6301845761681b852f9538cb75a1d2 (patch) | |
tree | 5060226d866ed80599011d0c7ba411c6aa267d6d /rust/helpers/helpers.c | |
parent | 2c98144fc832b35c4e9293a3bfc518608d6f5145 (diff) |
selftests: cgroup: Make test_pids backwards compatible
The predicates in test expect event counting from 73e75e6fc352b
("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: 9f34c566027b6 ("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>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions