utils: Enhance testsuite for do_strtosz()
commit1657ba44b449471c665bc5d358ca33af411710f3
authorEric Blake <eblake@redhat.com>
Thu, 11 Feb 2021 20:44:35 +0000 (11 14:44 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 8 Mar 2021 19:35:46 +0000 (8 13:35 -0600)
tree27c34696e7b3bd5606099a39ce88005c6ec19257
parent0da9856851dcca09222a1467e16ddd05dc66e460
utils: Enhance testsuite for do_strtosz()

Enhance our testsuite coverage of do_strtosz() to cover some things we
know that existing users want to continue working (hex bytes), as well
as some things that accidentally work but shouldn't (hex fractions) or
accidentally fail but that users want to work (64-bit precision on
byte values).  This includes fixing a typo in the comment regarding
our parsing near 2^64.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210211204438.1184395-2-eblake@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tests/test-cutils.c