tests-util: Adding test to verify "no-conversion" detection
authorSwen Schillig <swen@linux.ibm.com>
Wed, 10 Apr 2019 08:52:35 +0000 (10:52 +0200)
committerRalph Boehme <slow@samba.org>
Sun, 30 Jun 2019 11:32:18 +0000 (11:32 +0000)
commitba021e3cfb2d8497f0e62001782387547e996ded
treebf03dad0ecbeb288c4741ff8975a757753e98740
parent9af0614bcb1750e29a1018e7c6fb6f655cb594fd
tests-util: Adding test to verify "no-conversion" detection

The standard string to integer conversion routines return zero
if a string was to be converted which did not reflect a number.
It is not flag'ed as an error.
The wrapper functions strtoul_err() and strtoull_err() are expected
to exactly do this.

Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
lib/util/tests/util.c