Changeset 2158 for trunk/src/libctests/glibc/math/libm-test.inc
- Timestamp:
- Jul 3, 2005, 12:54:54 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libctests/glibc/math/libm-test.inc
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2157 r2158 168 168 static int output_points; /* Should the single function results printed? */ 169 169 static int ignore_max_ulp; /* Should we ignore max_ulp? */ 170 static int expect_errors; /* Number of errors we should expect / allow. */ 170 171 171 172 static FLOAT minus_zero, plus_zero; … … 4487 4488 { "ignore-max-ulp", 'i', "yes/no", 0, 4488 4489 "Ignore given maximal errors"}, 4490 { "expect", 'e', "NUMBER", 0, "Number of errors to expect"}, 4489 4491 { NULL, 0, NULL, 0, NULL } 4490 4492 }; … … 4529 4531 else 4530 4532 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; 4531 4539 break; 4532 4540 default: … … 4741 4749 { 4742 4750 printf (" %d errors occurred.\n", noErrors); 4743 return 1;4751 return noErrors > expect_errors; 4744 4752 } 4745 4753 printf (" All tests passed successfully.\n"); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.