OpenVPN
Functions
test_alloc.c File Reference
#include "config.h"
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <cmocka_private.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for test_alloc.c:

Go to the source code of this file.

Functions

static void torture_test_malloc (void **state)
 
static void torture_test_realloc (void **state)
 
static void torture_test_realloc_set0 (void **state)
 
int main (void)
 

Function Documentation

◆ main()

int main ( void  )

◆ torture_test_malloc()

static void torture_test_malloc ( void **  state)
static

Definition at line 13 of file test_alloc.c.

References assert_int_equal, assert_non_null, snprintf, test_free, and test_malloc.

Referenced by main().

◆ torture_test_realloc()

static void torture_test_realloc ( void **  state)
static

Definition at line 34 of file test_alloc.c.

References assert_int_equal, assert_non_null, assert_string_equal, snprintf, test_free, test_malloc, and test_realloc.

Referenced by main().

◆ torture_test_realloc_set0()

static void torture_test_realloc_set0 ( void **  state)
static

Definition at line 67 of file test_alloc.c.

References assert_non_null, assert_null, test_malloc, and test_realloc.

Referenced by main().