summaryrefslogtreecommitdiffstats
path: root/regress/lib/libutil/fmt_scaled/fmt_test.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* no need to declare "extern optarg" and "extern optind"schwarze2020-02-141-3/+1
| | | | | | when <unistd.h> is included; patch from Jan Stary <hans at stare dot cz>; OK millert
* Enable tests for +/-LLONG_MAX and add tests for other boundary conditions.dtucker2017-03-161-6/+19
| | | | ok millert@
* Add tests for scaled overflow and underflow and the exact overflow anddtucker2017-03-151-3/+44
| | | | | underflow boundaries for 64bit platforms. Tests for exactly under the boundaries disabled pending fixes. ok millert@ djm@ (previous version).
* Clean up errno handling in fmt_scaled test:dtucker2017-03-151-13/+9
| | | | | | | | | - always clear before calling function under test. - save immediately after function under test. - always use saved value for validation and reporting. - remove "fraction too big" testcase that never atually worked (but looked like it did because the previous test's errno was never cleared). - delete unecessary "extern int errno".
* Add missing includes to avoid implicit function declarations.jsg2017-02-251-1/+2
|
* Convert quad_t to long longguenther2016-08-141-8/+8
|
* require scan_scaled to set errno to EINVAL rather than ERANGE if ithalex2012-11-121-3/+4
| | | | | | encounters an invalid multiplier, like the man page says it should "looks sensible" deraadt@, ok ian@
* Repair comment ID & typo, no binary changeian2009-06-201-5/+5
|
* bullshit test; pointed out by davidderaadt2005-10-211-2/+0
|
* Now that rounding is done properly for fractionless numbers, fix theotto2005-03-091-4/+6
| | | | regression cases and add a few too.
* Some more real-life regression cases.otto2005-03-081-0/+3
|
* new regression found in the wild: 1099512676352 -> 2.0T; fixed a minute ago.otto2004-09-161-0/+1
|
* errno -> err in a structure. OK deraadt@david2004-07-161-8/+8
|
* Add a few test cases.otto2003-12-281-0/+8
| | | | ok ian@
* various cleanups; david says results are samederaadt2003-07-311-4/+4
|
* Regression for fmt_scaled() and scan_scaled().ian2003-05-151-0/+276