test/eal: check invalid CPU value
authorKevin Traynor <ktraynor@redhat.com>
Mon, 20 Jul 2020 10:19:08 +0000 (11:19 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 21 Jul 2020 18:48:57 +0000 (20:48 +0200)
commit12337cf2061e4ea544cc2cd7cd5ad4efb6ddf50a
tree92f839e8e4c445614a1b276724184ed83fd5a2c2
parent5ce366525a4cafafd965dd1dfd58c35de1c9ffd7
test/eal: check invalid CPU value

When using --lcores option, there is a limit of CPU_SETSIZE.
Currently that allows 0..1023 on Linux.

Check it is caught when this limit is exceeded.

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
app/test/test_eal_flags.c