]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tests/gunit: Extend the fuzzer to test cgroup_get_value_string()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Tue, 21 Feb 2023 13:10:05 +0000 (13:10 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 22 Feb 2023 16:43:53 +0000 (09:43 -0700)
commit1394f24871c2163abd5d124fa0cbae9f4fa09e45
tree4b5c979dd32b9725d6f5120fe52014799a97c58f
parenta0fcf2c19bc074b1d604d06fdde34ce3c49b10d2
tests/gunit: Extend the fuzzer to test cgroup_get_value_string()

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

s
[----------] 4 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

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