mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-13 08:26:22 +03:00
Add assert_* functionality to tests
This commit is contained in:
parent
21dfa4300d
commit
fa61579382
2 changed files with 240 additions and 2 deletions
|
|
@ -233,6 +233,11 @@ p_test_fail(const char *prefix, const char *message) {
|
|||
test_status = test_status_fail;
|
||||
}
|
||||
|
||||
bool
|
||||
p_test_failed() {
|
||||
return test_status == test_status_fail;
|
||||
}
|
||||
|
||||
void
|
||||
strncpy_cond(void *dst, const char *src, bool cond) {
|
||||
if (cond) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue