#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "client.c"
Go to the source code of this file.
Functions | |
static void | print_pllist (FILE *fp, struct HIPC_ptr_link_list const *pllist_p) |
static void | test_client_memope_no_allocation (void) |
Check normal termination when there is no memory allocation. More... | |
static void | test_client_memope_malloc (void) |
Check normal termination when there is one malloc. More... | |
static void | test_client_memope_calloc (void) |
Check normal termination when there is one calloc. More... | |
static void | test_client_memope_multi (void) |
Check normal termination when there are multiple memory allocations. More... | |
int | main (int argc, char *argv[]) |
|
static |
Definition at line 7 of file test_client_memope.c.
References HIPC_ptr_link_list::next, and HIPC_ptr_link_list::ptr.
Referenced by test_client_memope_calloc(), test_client_memope_malloc(), test_client_memope_multi(), and test_client_memope_no_allocation().
|
static |
Check normal termination when there is no memory allocation.
Definition at line 26 of file test_client_memope.c.
References hipcClientTerminate(), HIPC_client::pllist_p, and print_pllist().
Referenced by main().
|
static |
Check normal termination when there is one malloc.
Definition at line 42 of file test_client_memope.c.
References hipcClientMalloc(), hipcClientTerminate(), HIPC_ptr_link_list::next, HIPC_client::pllist_p, print_pllist(), and HIPC_ptr_link_list::ptr.
Referenced by main().
|
static |
Check normal termination when there is one calloc.
Definition at line 64 of file test_client_memope.c.
References hipcClientCalloc(), hipcClientTerminate(), HIPC_ptr_link_list::next, HIPC_client::pllist_p, print_pllist(), and HIPC_ptr_link_list::ptr.
Referenced by main().
|
static |
Check normal termination when there are multiple memory allocations.
Definition at line 90 of file test_client_memope.c.
References hipcClientCalloc(), hipcClientMalloc(), hipcClientTerminate(), HIPC_ptr_link_list::next, HIPC_client::pllist_p, print_pllist(), and HIPC_ptr_link_list::ptr.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 134 of file test_client_memope.c.
References test_client_memope_calloc(), test_client_memope_malloc(), test_client_memope_multi(), and test_client_memope_no_allocation().