]> sourceware.org Git - glibc.git/commitdiff
Don't handle ulps for integer tests in libm-test.inc.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 17 May 2013 19:01:27 +0000 (19:01 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 17 May 2013 19:01:27 +0000 (19:01 +0000)
ChangeLog
math/libm-test.inc

index 6bf5860b6e596d8812fa43d03ffdb2941c516b0d..36e0da57df8a1fe202e2f22d61ba1c9641d9974d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
 
+       * math/libm-test.inc (check_int): Expect result to be exactly
+       equal to expected value and do not handle ulps.
+       (check_long): Likewise.
+       (check_longlong): Likewise.
+
        * math/libm-test.inc (ceil_test_data): Test for "inexact"
        exceptions.
        (cimag_test_data): Likewise.
index f5fabd327c7b6b4c70e2693f6f991b544ee6205c..1d478ed8d2c62502fc0b6dc835eef094ac1e8c39 100644 (file)
@@ -734,19 +734,15 @@ static void
 check_int (const char *test_name, int computed, int expected, int max_ulp,
           int exceptions)
 {
-  int diff = computed - expected;
   int ok = 0;
   int errno_value = errno;
 
   test_exceptions (test_name, exceptions);
   test_errno (test_name, errno_value, exceptions);
   noTests++;
-  if (abs (diff) <= max_ulp)
+  if (computed == expected)
     ok = 1;
 
-  if (!ok)
-    print_ulps (test_name, diff);
-
   if (print_screen (ok))
     {
       if (!ok)
@@ -768,19 +764,15 @@ static void
 check_long (const char *test_name, long int computed, long int expected,
            long int max_ulp, int exceptions)
 {
-  long int diff = computed - expected;
   int ok = 0;
   int errno_value = errno;
 
   test_exceptions (test_name, exceptions);
   test_errno (test_name, errno_value, exceptions);
   noTests++;
-  if (labs (diff) <= max_ulp)
+  if (computed == expected)
     ok = 1;
 
-  if (!ok)
-    print_ulps (test_name, diff);
-
   if (print_screen (ok))
     {
       if (!ok)
@@ -834,19 +826,15 @@ check_longlong (const char *test_name, long long int computed,
                long long int max_ulp,
                int exceptions)
 {
-  long long int diff = computed - expected;
   int ok = 0;
   int errno_value = errno;
 
   test_exceptions (test_name, exceptions);
   test_errno (test_name, errno_value, exceptions);
   noTests++;
-  if (llabs (diff) <= max_ulp)
+  if (computed == expected)
     ok = 1;
 
-  if (!ok)
-    print_ulps (test_name, diff);
-
   if (print_screen (ok))
     {
       if (!ok)
This page took 0.150341 seconds and 5 git commands to generate.