Message ID | 20190527062807.93404-3-alex.shi@linux.alibaba.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | f97f3f8839eb9de5843066d80819884f7722c8c5 |
Headers | show |
Series | [v3,1/3] kselftest/cgroup: fix unexpected testing failure on test_memcontrol | expand |
diff --git a/tools/testing/selftests/cgroup/test_core.c b/tools/testing/selftests/cgroup/test_core.c index d78f1c5366d3..79053a4f4783 100644 --- a/tools/testing/selftests/cgroup/test_core.c +++ b/tools/testing/selftests/cgroup/test_core.c @@ -198,7 +198,7 @@ static int test_cgcore_no_internal_process_constraint_on_threads(const char *roo char *parent = NULL, *child = NULL; if (cg_read_strstr(root, "cgroup.controllers", "cpu") || - cg_read_strstr(root, "cgroup.subtree_control", "cpu")) { + cg_write(root, "cgroup.subtree_control", "+cpu")) { ret = KSFT_SKIP; goto cleanup; }