]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tests/gunit: Extend the fuzzer to test cgroup_add_value_string()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 27 Feb 2023 04:21:19 +0000 (09:51 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 27 Feb 2023 16:39:30 +0000 (09:39 -0700)
commita94c746bd53d9f69f7658f71e8f9330862cbb38f
treecc0e7455e383663424d2084750de6b4f2876a33c
parente328b8232762b92e2cd84c46583d3dd2b434b321
tests/gunit: Extend the fuzzer to test cgroup_add_value_string()

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

[----------] 6 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)
[ RUN      ] APIArgsTest.API_cgroup_add_value_string
[       OK ] APIArgsTest.API_cgroup_add_value_string (0 ms)
[----------] 6 tests from APIArgsTest (0 ms total)

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit aa1148a7b50e7f8bc33cad0a013b9545716365a2)
tests/gunit/017-API_fuzz_test.cpp