MCPcopy Create free account
hub / github.com/acl-dev/acl / test_fatal_malloc

Function test_fatal_malloc

unit_test/stdlib/test_malloc.c:7–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "test_stdlib.h"
6
7int test_fatal_malloc(AUT_LINE *test_line acl_unused, void *arg acl_unused)
8{
9 char *ptr;
10
11 acl_memory_debug_start();
12 ptr = acl_mymalloc(-1);
13 assert(ptr);
14 acl_memory_debug_stop();
15
16 /*not reached */
17 return (0);
18}
19
20int test_fatal_free(AUT_LINE *test_line acl_unused, void *arg acl_unused)
21{

Callers

nothing calls this directly

Calls 2

acl_memory_debug_startFunction · 0.85
acl_memory_debug_stopFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…