]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-cpu-set-util: fix check for CPUSet.allocated
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 21 Jun 2025 14:06:16 +0000 (23:06 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 23 Jun 2025 21:28:22 +0000 (22:28 +0100)
commit274e2f4bb9fa14c55a971eaccd3b1487ecc05582
treeab6137cb90a2dd1c0ed992b677a5a1582117776a
parent170d7d49f527100495fb1251d11fd56acd523a8e
test-cpu-set-util: fix check for CPUSet.allocated

The check was simply wrong and meaningless, as it always checked
CPUSet.allocated is greater than or equals to 1, as sizeof(__cpu_mask) is 8.

Let's make the test more strict.
src/test/test-cpu-set-util.c