Ignore:
Timestamp:
Jul 3, 2005, 12:54:54 AM (20 years ago)
Author:
bird
Message:

math, malloc suchlike.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/glibc/math/libm-test.inc

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2157 r2158  
    168168static int output_points;       /* Should the single function results printed?  */
    169169static int ignore_max_ulp;      /* Should we ignore max_ulp?  */
     170static int expect_errors;   /* Number of errors we should expect / allow. */
    170171
    171172static FLOAT minus_zero, plus_zero;
     
    44874488  { "ignore-max-ulp", 'i', "yes/no", 0,
    44884489    "Ignore given maximal errors"},
     4490  { "expect", 'e', "NUMBER", 0, "Number of errors to expect"},
    44894491  { NULL, 0, NULL, 0, NULL }
    44904492};
     
    45294531      else
    45304532        verbose = 3;
     4533      break;
     4534    case 'e':
     4535      if (optarg)
     4536        expect_errors = (unsigned int) strtoul (optarg, NULL, 0);
     4537      else
     4538        expect_errors = 9999999;
    45314539      break;
    45324540    default:
     
    47414749    {
    47424750      printf ("  %d errors occurred.\n", noErrors);
    4743       return 1;
     4751      return noErrors > expect_errors;
    47444752    }
    47454753  printf ("  All tests passed successfully.\n");
Note: See TracChangeset for help on using the changeset viewer.