test-math-iscanonical.cc: Return errors != 0

Since not all non-zero error counts are errors, return errors != 0
instead.

	* math/test-math-iscanonical.cc (do_test): Return errors != 0.
This commit is contained in:
H.J. Lu 2017-10-04 14:31:16 -07:00
parent 7e16a5d1d1
commit 758f1bfa2a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
* math/test-math-iscanonical.cc (do_test): Return errors != 0.
2017-10-04 Joseph Myers <joseph@codesourcery.com>
* sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.

View File

@ -42,7 +42,7 @@ do_test (void)
#if __HAVE_DISTINCT_FLOAT128
check_type<_Float128> ();
#endif
return errors;
return errors != 0;
}
#include <support/test-driver.c>