]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: add explicit test cases for cpu_set_add() and cpu_set_add_range()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Jul 2025 17:31:37 +0000 (02:31 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Jul 2025 20:00:02 +0000 (05:00 +0900)
commit6ce3b1fa331f7c3e44354fe56a0ed92c33e54776
tree3c341de372b7da0313c3e7e78b725e6a11055924
parentd54f1e4329aa2b80107383f99253f5f3df9f1f84
test: add explicit test cases for cpu_set_add() and cpu_set_add_range()

cpu_set_add_range() is used in parse_cpu_set(), hence already tested.
But it is better to test these functions explicitly.

For CID#1611787 and CID#1611788, that should be false-positive.
src/shared/cpu-set-util.c
src/shared/cpu-set-util.h
src/test/test-cpu-set-util.c