]> 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:08:13 +0000 (10:08 -0600)
commit32eff99aeefcc653152300d1755b3fceed895d3e
treea896abd8ec556c19cb16c0dff3b876e7cfb883e8
parent0e4cf074c6deffe42de04100fa4993ab189e6163
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>
(cherry picked from commit 86a371889ca7f19805e298038140629e4dab3737)
tests/gunit/017-API_fuzz_test.cpp