]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tests/gunit: Extend the fuzzer to test cgroup_get_value_bool()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 8 Mar 2023 15:26:38 +0000 (20:56 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 9 Mar 2023 17:15:33 +0000 (10:15 -0700)
commit749adba530fa3a3ec5e0948381d14109b97ac591
treee8abb061d2d8f31214f46d2c55cadae8ee209deb
parentbb5f79871f6877dec1d44e18f4f627d3f529742c
tests/gunit: Extend the fuzzer to test cgroup_get_value_bool()

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

[----------] 13 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)
[ 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)
[ RUN      ] APIArgsTest.API_cgroup_get_value_int64
[       OK ] APIArgsTest.API_cgroup_get_value_int64 (0 ms)
[ RUN      ] APIArgsTest.API_cgroup_set_value_uint64
[       OK ] APIArgsTest.API_cgroup_set_value_uint64 (0 ms)
[ RUN      ] APIArgsTest.API_cgroup_get_value_uint64
[       OK ] APIArgsTest.API_cgroup_get_value_uint64 (0 ms)
[ RUN      ] APIArgsTest.API_cgroup_set_value_bool
[       OK ] APIArgsTest.API_cgroup_set_value_bool (0 ms)
[ RUN      ] APIArgsTest.API_cgroup_get_value_bool
[       OK ] APIArgsTest.API_cgroup_get_value_bool (0 ms)
[----------] 13 tests from APIArgsTest (1 ms total)

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