[PATCH v3] Add tests for the long double version of ecvt and fcvt

Florian Weimer fweimer@redhat.com
Thu Dec 13 15:49:00 GMT 2018


* Gabriel F. T. Gomes:

> 	* misc/Makefile (tests): Remove tst-efgcvt.  Add tst-dbl-efgcvt
> 	and tst-ldbl-efgcvt.
> 	* misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
> 	* misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
> 	(struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
> 	(fcvt_tests, output_error, output_r_error, do_test): Use the
> 	macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
> 	select the type of floating-point variables and arguments; to
> 	produce extra tests for double and conversion specifiers for
> 	printf; and to set the names of called functions.
> 	* misc/tst-dbl-efgcvt.c: New file that defines the macros used
> 	in tst-efgcvt-template.c.
> 	* misc/tst-ldbl-efgcvt.c: Likewise.

This version looks okay to me.  I'm not a math reviewer, but please feel
free to commit this.

Thanks,
Florian



More information about the Libc-alpha mailing list