util-linux/tests
Sami Kerola 23df051030
lscpu: fix floating point exception
As the title tells this change indeed fixes floating point exception, but
post processing as value overwrite feels a wrong.  Possibly something in
input is making cpu set count to go wrong, but I could not get my head
around what could it be.  Anyway avoiding division by zero seems better than
crashing so lets do this atleast for now.

Caused-by: e5f721132e
Addresses: https://github.com/karelzak/util-linux/issues/788
Reported-by: Lars Wendler <polynomial-c@gentoo.org>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2019-05-18 18:43:08 +01:00
..
expected lscpu: fix floating point exception 2019-05-18 18:43:08 +01:00
helpers tests: add tests for encode functions from lib/mbsalign.c 2018-01-10 17:40:53 +01:00
ts lscpu: fix floating point exception 2019-05-18 18:43:08 +01:00
.gitignore tests: make compatible with autotools 2012-08-03 21:24:51 +02:00
Makemodule.am tests: style Makefile and make output 2014-05-12 09:57:14 +02:00
commands.sh tests: add --use-system-commands 2019-03-04 17:14:12 +01:00
functions.sh tests: add --noskip-commands 2019-03-05 11:06:41 +01:00
run.sh tests: auto-enable ASAN option if necessary 2019-04-24 12:24:15 +02:00