about summary refs log tree commit diff
path: root/math
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 /math
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.
Diffstat (limited to 'math')
-rw-r--r--math/test-math-iscanonical.cc2
1 files changed, 1 insertions, 1 deletions
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>