test-json: check absolute and relative difference in floating point test
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 21 Dec 2018 21:49:53 +0000 (22:49 +0100)
committerMichael Biebl <biebl@debian.org>
Thu, 27 Dec 2018 13:03:57 +0000 (13:03 +0000)
commitda49580154aae8bcccf0ae6760d69f6a4a5d6ca4
tree45d29da32491e34c6b1ea5dc67fe1249db0d4341
parent9f39a290e2498a7e86682d2f09672b20339687fd
test-json: check absolute and relative difference in floating point test

The test fails under valgrind, so there was an exception for valgrind.
Unfortunately that check only works when valgrind-devel headers are
available during build. But it is possible to have just valgrind installed,
or simply install it after the build, and then "valgrind test-json" would
fail.

It also seems that even without valgrind, this fails on some arm32 CPUs.
Let's do the usual-style test for absolute and relative differences.

Gbp-Pq: Topic debian
Gbp-Pq: Name test-json-check-absolute-and-relative-difference-in-float.patch
src/test/test-json.c