HIPC  0.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
test_client_memope.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "client.c"
Include dependency graph for test_client_memope.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[])
 

Function Documentation

static void print_pllist ( FILE *  fp,
struct HIPC_ptr_link_list const *  pllist_p 
)
static
static void test_client_memope_no_allocation ( void  )
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().

Here is the call graph for this function:

Here is the caller graph for this function:

static void test_client_memope_malloc ( void  )
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().

Here is the call graph for this function:

Here is the caller graph for this function:

static void test_client_memope_calloc ( void  )
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().

Here is the call graph for this function:

Here is the caller graph for this function:

static void test_client_memope_multi ( void  )
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function: