linux-stable/tools/testing/selftests/cgroup
Jay Kamat 48c2bb0b9c Fix cg_read_strcmp()
Fix a couple issues with cg_read_strcmp(), to improve correctness of
cgroup tests
- Fix cg_read_strcmp() always returning 0 for empty "needle" strings.
Previously, this function read to a size = 1 buffer when comparing
against empty strings, which would lead to cg_read_strcmp() comparing
two empty strings.
- Fix a memory leak in cg_read_strcmp()

Fixes: 84092dbcf9 ("selftests: cgroup: add memory controller self-tests")

Signed-off-by: Jay Kamat <jgkamat@fb.com>
Acked-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
2018-09-07 16:35:51 -06:00
..
.gitignore cgroup: kselftests: add test_core to .gitignore 2018-09-06 12:24:47 -06:00
cgroup_util.c Fix cg_read_strcmp() 2018-09-07 16:35:51 -06:00
cgroup_util.h Add cgroup core selftests 2018-08-09 09:12:45 -06:00
Makefile Add cgroup core selftests 2018-08-09 09:12:45 -06:00
test_core.c Add cgroup core selftests 2018-08-09 09:12:45 -06:00
test_memcontrol.c selftests: cgroup/memcontrol: add basic test for socket accounting 2018-05-30 21:28:33 -06:00