]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tests/gunit: Extend the fuzzer to test cgroup_add_controller()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 24 Feb 2023 05:35:07 +0000 (11:05 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 24 Feb 2023 15:35:41 +0000 (08:35 -0700)
commit4bec8844d71e3c7428dddcff29c7006dc378a5ec
tree2974b04cf69b860de2b76f3fad342117c284a42e
parent42436e7e32412c32d2130198fe8a4c0ff48e1d07
tests/gunit: Extend the fuzzer to test cgroup_add_controller()

Add fuzzing to the cgroup_add_controller() API, by passing combination
of valid/NULL as arguments to the API.

[----------] 5 tests from APIArgsTest
[ RUN      ] APIArgsTest.API_cgroup_set_permissions
[       OK ] APIArgsTest.API_cgroup_set_permissions (0 ms)
[ RUN      ] APIArgsTest.API_cgroup_new_cgroup
[       OK ] APIArgsTest.API_cgroup_new_cgroup (0 ms)
[ RUN      ] APIArgsTest.API_cgroup_set_value_string
[       OK ] APIArgsTest.API_cgroup_set_value_string (0 ms)
[ RUN      ] APIArgsTest.API_cgroup_get_value_string
[       OK ] APIArgsTest.API_cgroup_get_value_string (0 ms)
[ RUN      ] APIArgsTest.API_cgroup_add_controller
[       OK ] APIArgsTest.API_cgroup_add_controller (0 ms)
[----------] 5 tests from APIArgsTest (0 ms total)

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