[PATCH] [BZ #19654] Added tests for *_finite aliases from libmvec

Joseph Myers joseph@codesourcery.com
Wed May 18 00:59:00 GMT 2016


On Sat, 20 Feb 2016, Andrew Senkevich wrote:

> +  if (log_res[0] != 0.0) abort ();
> +  if (exp_res[0] != 1.0) abort ();
> +  if (pow_res[0] != 1.0) abort ();

Aborting is not the right way for a test to report an error.  Rather, the 
function should return an error status to its caller (ending up with 
do_test returning 1 on error, 0 on success - and ideally 77 for 
UNSUPPORTED tests, which would be those where CHECK_ARCH_EXT fails).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list