]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tests/gunit: Extend the fuzzer to test cgroup_set_value_int64()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 2 Mar 2023 05:05:04 +0000 (10:35 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 2 Mar 2023 15:50:02 +0000 (08:50 -0700)
commitbcecc2d45b3848c5d1075a6f24f4c2302621fedf
tree9a012ff230c4cf46c27bf378b9f7a6cefbe0b6e7
parent3d56cb07193682da2df078820427e45b458b5823
tests/gunit: Extend the fuzzer to test cgroup_set_value_int64()

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

[----------] 8 tests from APIArgsTest
[ RUN      ] APIArgsTest.API_cgroup_set_permissions
[       OK ] APIArgsTest.API_cgroup_set_permissions (1 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)
[ RUN      ] APIArgsTest.API_cgroup_get_uid_gid
[       OK ] APIArgsTest.API_cgroup_get_uid_gid (0 ms)
[ RUN      ] APIArgsTest.API_cgroup_set_value_int64
[       OK ] APIArgsTest.API_cgroup_set_value_int64 (0 ms)
[----------] 8 tests from APIArgsTest (1 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