about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-04 14:31:16 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-04 14:31:16 -0700
commit758f1bfa2a1bccb52f1b3e97444a367d35aceaee (patch)
tree7d114ab7cb7dfcc8dd4607abe7ae259836869728
parent7e16a5d1d19effc7b2775942f592520cfff03d92 (diff)
downloadglibc-758f1bfa2a1bccb52f1b3e97444a367d35aceaee.tar.gz
glibc-758f1bfa2a1bccb52f1b3e97444a367d35aceaee.tar.xz
glibc-758f1bfa2a1bccb52f1b3e97444a367d35aceaee.zip
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.
-rw-r--r--ChangeLog4
-rw-r--r--math/test-math-iscanonical.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4d94f133dc..c1fd8a7993 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>.
diff --git a/math/test-math-iscanonical.cc b/math/test-math-iscanonical.cc
index 8ced7a73b4..4cfb1c5055 100644
--- a/math/test-math-iscanonical.cc
+++ b/math/test-math-iscanonical.cc
@@ -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>