History log of /external/jemalloc/test/include/test/test.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0c12dcabc59ea9c95fc38197e7c4bc44663b0a26 07-May-2016 Jason Evans <jasone@canonware.com> Fix tsd bootstrapping for a0malloc().
/external/jemalloc/test/include/test/test.h
5fae7dc1b316d0e93aa20cc3aaf050f509aec705 23-Jul-2015 Jason Evans <jasone@canonware.com> Fix MinGW-related portability issues.

Create and use FMT* macros that are equivalent to the PRI* macros that
inttypes.h defines. This allows uniform use of the Unix-specific format
specifiers, e.g. "%zu", as well as avoiding Windows-specific definitions
of e.g. PRIu64.

Add ffs()/ffsl() support for compiling with gcc.

Extract compatibility definitions of ENOENT, EINVAL, EAGAIN, EPERM,
ENOMEM, and ENORANGE into include/msvc_compat/windows_extra.h and
use the file for tests as well as for core jemalloc code.
/external/jemalloc/test/include/test/test.h
e42c309eba6c5084dc0abda9b211e91e2c548fdf 23-Jul-2015 Jason Evans <jasone@canonware.com> Add JEMALLOC_FORMAT_PRINTF().

Replace JEMALLOC_ATTR(format(printf, ...). with
JEMALLOC_FORMAT_PRINTF(), so that configuration feature tests can
omit the attribute if it would cause extraneous compilation warnings.
/external/jemalloc/test/include/test/test.h
218b15cc299ccb8114e52df3eb0f7a9dc810a4b1 18-Jul-2015 Jason Evans <jasone@canonware.com> Fix more MinGW build warnings.
/external/jemalloc/test/include/test/test.h
7330c3770af0e5328d749635217387efbbe0ae3c 21-May-2014 Mike Hommey <mh@glandium.org> Use C99 varadic macros instead of GCC ones
/external/jemalloc/test/include/test/test.h
a344dd01c74a7e385087819046105f689931905d 02-May-2014 Jason Evans <je@fb.com> Fix coding sytle nits.
/external/jemalloc/test/include/test/test.h
e3f27cfced57ac9c3b5306947d37411479a68c2e 30-Mar-2014 Jason Evans <jasone@canonware.com> Fix p_test_fail()'s va_list abuse.

p_test_fail() was passing a va_list to two separate functions with the
expectation that no reset would occur. Refactor p_test_fail()'s callers
to instead format two strings and pass them to p_test_fail().

Add a missing parameter to an assert_u64_eq() call, which the compiler
warned about after the assertion macro refactoring.
/external/jemalloc/test/include/test/test.h
e18c25d23de0e845f0ee7e11d02c1be044738a3c 07-Jan-2014 Jason Evans <je@fb.com> Add util unit tests, and fix discovered bugs.

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.
/external/jemalloc/test/include/test/test.h
de73296d6b56abe70b08654342e136c2612d1dbd 19-Dec-2013 Jason Evans <je@fb.com> Add mallctl*() unit tests.
/external/jemalloc/test/include/test/test.h
0d6c5d8bd0d866a0ce4ce321259cec65d6459821 18-Dec-2013 Jason Evans <jasone@canonware.com> Add quarantine unit tests.

Verify that freed regions are quarantined, and that redzone corruption
is detected.

Introduce a testing idiom for intercepting/replacing internal functions.
In this case the replaced function is ordinarily a static function, but
the idiom should work similarly for library-private functions.
/external/jemalloc/test/include/test/test.h
b1941c615023cab9baf0a78a28df1e3b4972434f 10-Dec-2013 Jason Evans <jasone@canonware.com> Add probabability distribution utility code.

Add probabability distribution utility code that enables generation of
random deviates drawn from normal, Chi-square, and Gamma distributions.

Fix format strings in several of the assert_* macros (remove a %s).

Clean up header issues; it's critical that system headers are not
included after internal definitions potentially do things like:

#define inline

Fix the build system to incorporate header dependencies for the test
library C files.
/external/jemalloc/test/include/test/test.h
80061b6df0a8bef0cedbd947d74932ff1c2511e8 09-Dec-2013 Jason Evans <jasone@canonware.com> Integrate SFMT 1.3.3 into test infrastructure.

Integrate the SIMD-oriented Fast Mersenne Twister (SFMT) 1.3.3 into the
test infrastructure.

The sfmt_t state encapsulation modification comes from Crux
(http://www.canonware.com/Crux/) and enables multiple
concurrent PRNGs.

test/unit/SFMT.c is an adaptation of SFMT's test.c that performs all the
same validation, both for 32- and 64-bit generation.
/external/jemalloc/test/include/test/test.h
2a83ed0284e92c7ba4bd4efe9df149ac724b2f26 09-Dec-2013 Jason Evans <jasone@canonware.com> Refactor tests.

Refactor tests to use explicit testing assertions, rather than diff'ing
test output. This makes the test code a bit shorter, more explicitly
encodes testing intent, and makes test failure diagnosis more
straightforward.
/external/jemalloc/test/include/test/test.h
86abd0dcd8e478759fe409d338d11558c4cec427 01-Dec-2013 Jason Evans <jasone@canonware.com> Refactor to support more varied testing.

Refactor the test harness to support three types of tests:
- unit: White box unit tests. These tests have full access to all
internal jemalloc library symbols. Though in actuality all symbols
are prefixed by jet_, macro-based name mangling abstracts this away
from test code.
- integration: Black box integration tests. These tests link with
the installable shared jemalloc library, and with the exception of
some utility code and configure-generated macro definitions, they have
no access to jemalloc internals.
- stress: Black box stress tests. These tests link with the installable
shared jemalloc library, as well as with an internal allocator with
symbols prefixed by jet_ (same as for unit tests) that can be used to
allocate data structures that are internal to the test code.

Move existing tests into test/{unit,integration}/ as appropriate.

Split out internal parts of jemalloc_defs.h.in and put them in
jemalloc_internal_defs.h.in. This reduces internals exposure to
applications that #include <jemalloc/jemalloc.h>.

Refactor jemalloc.h header generation so that a single header file
results, and the prototypes can be used to generate jet_ prototypes for
tests. Split jemalloc.h.in into multiple parts (jemalloc_defs.h.in,
jemalloc_macros.h.in, jemalloc_protos.h.in, jemalloc_mangle.h.in) and
use a shell script to generate a unified jemalloc.h at configure time.

Change the default private namespace prefix from "" to "je_".

Add missing private namespace mangling.

Remove hard-coded private_namespace.h. Instead generate it and
private_unnamespace.h from private_symbols.txt. Use similar logic for
public symbols, which aids in name mangling for jet_ symbols.

Add test_warn() and test_fail(). Replace existing exit(1) calls with
test_fail() calls.
/external/jemalloc/test/include/test/test.h