summaryrefslogtreecommitdiffstats
path: root/test/unit/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix style nits.Jason Evans2016-04-171-2/+2
|
* Fix more 64-to-32 conversion warnings.Jason Evans2016-04-121-6/+6
|
* Refactor out signed/unsigned comparisons.Jason Evans2016-03-151-4/+4
|
* Refactor prng* from cpp macros into inline functions.Jason Evans2016-02-201-23/+46
| | | | | Remove 32-bit variant, convert prng64() to prng_lg_range(), and add prng_range().
* Use KQU() rather than QU() where applicable.Jason Evans2014-05-291-45/+45
| | | | Fix KZI() and KQI() to append LL rather than ULL.
* Use C99 varadic macros instead of GCC onesMike Hommey2014-05-271-4/+4
|
* Test and fix malloc_printf("%%").Jason Evans2014-01-221-0/+2
|
* Fix warnings and a test failure exposed on CentOS 6.3.Jason Evans2014-01-151-2/+0
|
* Add util unit tests, and fix discovered bugs.Jason Evans2014-01-071-0/+294
Add unit tests for pow2_ceil(), malloc_strtoumax(), and malloc_snprintf(). Fix numerous bugs in malloc_strotumax() error handling/reporting. These bugs could have caused application-visible issues for some seldom used (0X... and 0... prefixes) or malformed MALLOC_CONF or mallctl() argument strings, but otherwise they had no impact. Fix numerous bugs in malloc_snprintf(). These bugs were not exercised by existing malloc_*printf() calls, so they had no impact.