]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tests: fix checking wrong result in 017-API_fuzz_test
authorSam James <sam@gentoo.org>
Thu, 22 May 2025 23:51:01 +0000 (00:51 +0100)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 23 May 2025 16:02:39 +0000 (10:02 -0600)
commit86a371889ca7f19805e298038140629e4dab3737
treefb57e0a04b3f662ee6161248cc7d46aa8ce25917
parent42cee67adb5415abd0206f8ca0780296716588d1
tests: fix checking wrong result in 017-API_fuzz_test

There seem to be various calls to cgroup_add_controller where the result
isn't validated, instead checking the cgrp pointer.

We could add two asserts in each place being changed here if the concern
was testing for if cgroup_add_controller mangled cgrp, but it looks
more likely that it's a copy/paste error instead and we're just testing
the wrong thing.

Signed-off-by: Sam James <sam@gentoo.org>
Acked-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/gunit/017-API_fuzz_test.cpp