test-cpu-set-util: fix comparison for allocation size
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 4 Jun 2019 07:19:04 +0000 (09:19 +0200)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Mon, 9 Dec 2019 12:13:24 +0000 (13:13 +0100)
commitf4344bb4055cab8dc3bbe82a7f3d97fc6fabcb7e
tree6c7d4b2c38d329a6fbcb72e1863df3b1bfcdd158
parent613a02b7d67864af1860e9137e2ee101d603463e
test-cpu-set-util: fix comparison for allocation size

On i386, __cpu_mask is 4 bytes, so we'd check if c.allocated >= 0, and
gcc would warn about a bogus comparison. Let's round up.

Fixes #12726.

(cherry picked from commit a299ce058b41b21c87f36e77e2c563b0ddd1be0d)

Related: #1734787
src/test/test-cpu-set-util.c