tst_ToJson: accept musl's truncated formatting of 2^64
The tst_ToJson tests expect 2^64 to format as 1.8446744073709552e+19
(correctly rounded to 17 significant digits, as done by glibc, MSVC's
UCRT, Apple's and BSD's libcs). musl's printf() instead truncates the
decimal representation and produces 1.8446744073709551e+19, which makes
tst_ToJson fail on Alpine Linux and other musl-based distributions.
musl deliberately defines no identification macro, so detect it by
exclusion: Linux with neither glibc, uClibc nor Bionic. On such systems
the four affected test rows now expect musl's truncated output instead.
1 file changed