]> git.ipfire.org Git - thirdparty/valgrind.git/commit
s390x regtest: Reduce pfpo test case output
authorAndreas Arnez <arnez@linux.ibm.com>
Thu, 7 Sep 2023 14:43:24 +0000 (16:43 +0200)
committerAndreas Arnez <arnez@linux.ibm.com>
Thu, 7 Sep 2023 14:43:24 +0000 (16:43 +0200)
commite5440ef64eb66d954d72224db9d4712f3704c74b
tree860d79ea60a44081ab9cb3a8fd692d25cc7e2a2c
parentc086bbdd66dc8e7cba02f06de74aff37bb79b3ea
s390x regtest: Reduce pfpo test case output

The `pfpo' test case prints floating-point values with the "%f" and "%Lf"
formats.  Sometimes also "%lf" is used, but that's equivalent to "%f"
since the "l" length modifier doesn't affect floating-point formatting.

These "f"-style formats are not well suited for such a test case:

* They generate excessively long output for numbers with large absolute
  values.  This makes `pfpo.stdout.exp' difficult to handle.

* They can lose precision, in particular for numbers close to zero, where
  they just print zeros.

Use the formats "%a" and "%La" instead and adjust pfpo.stdout.exp
accordingly.
none/tests/s390x/pfpo.c
none/tests/s390x/pfpo.stdout.exp