]> git.ipfire.org Git - thirdparty/util-linux.git/commit
bits: add test for invalid token in cpulist_parse()
authorWanBingjiang <wanbingjiang@webray.com.cn>
Wed, 29 Apr 2026 11:08:24 +0000 (19:08 +0800)
committerWanBingjiang <wanbingjiang@webray.com.cn>
Thu, 7 May 2026 01:51:19 +0000 (09:51 +0800)
commit64a00f7adf5c19be9f800644ac16587dec202e2e
treebab7894dd11460efd8e9499d55b688e7510fab87
parent6ccfb215642ff758492a3f165b5589488e199b04
bits: add test for invalid token in cpulist_parse()

Verify that inputs like 1,2,3abc,4 with trailing garbage after a
valid number are rejected.

Signed-off-by: WanBingjiang <wanbingjiang@webray.com.cn>
tests/expected/bits/bits-parse-invalid [new file with mode: 0644]
tests/expected/bits/bits-parse-invalid.err [new file with mode: 0644]
tests/expected/bits/bits-parse-invalid.exit_code [new file with mode: 0644]
tests/ts/bits/bits