tests-util: Adding test to verify "full-string-conversion" flag
authorSwen Schillig <swen@linux.ibm.com>
Mon, 3 Jun 2019 08:37:07 +0000 (10:37 +0200)
committerRalph Boehme <slow@samba.org>
Sun, 30 Jun 2019 11:32:19 +0000 (11:32 +0000)
commitdac981a3887fe79650b38e63799e344b22c8f5f1
treecd742e38f376a280462aa9b33aefc1bf803fac01
parented533debc40f3173326c65a90ae344d01ec1d427
tests-util: Adding test to verify "full-string-conversion" flag

The standard string to integer conversion routines stop at the first
character which cannot be converted to a number.
However, if such a character is found, it is not considered an error.
With the flag "SMB_STR_FULL_STR_CONV" enabled, an error will be returned
if the string could not be converted entirely.

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