]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 3 Jan 2019 12:35:04 +0000 (21:35 +0900)
commitaa70783f55b369521b94e0985e84bbdaae16b174
tree0298e0225fe43d7078ebf9662cd89ec5d36041be
parenta92f2af28a5875dd15c85212553857ba893bfc3f
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.
src/test/test-json.c