Crossfire Server, Trunk
check_free_objects.cpp File Reference
#include <check.h>
#include <global.h>
#include <sproto.h>
#include <stdlib.h>
#include <string.h>
#include <toolkit_common.h>
+ Include dependency graph for check_free_objects.cpp:

Go to the source code of this file.

Functions

static END_TEST Suite * bug_suite (void)
 
static objectfind_arch_at (mapstruct *map, int x, int y, const char *arch_name)
 
int main (void)
 
static void setup (void)
 
 START_TEST (test_merge)
 
static void teardown (void)
 

Detailed Description

Makes sure that inventory objects are freed correctly.

Definition in file check_free_objects.cpp.

Function Documentation

◆ bug_suite()

static END_TEST Suite* bug_suite ( void  )
static

Definition at line 104 of file check_free_objects.cpp.

References setup(), and teardown().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_arch_at()

static object* find_arch_at ( mapstruct map,
int  x,
int  y,
const char *  arch_name 
)
static

Definition at line 35 of file check_free_objects.cpp.

References FOR_MAP_FINISH, FOR_MAP_PREPARE, disinfect::map, give::op, diamondslots::x, and diamondslots::y.

Referenced by START_TEST().

+ Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 117 of file check_free_objects.cpp.

References bug_suite(), cctk_setdatadir(), and init().

+ Here is the call graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 44 of file check_free_objects.cpp.

Referenced by bug_suite().

+ Here is the caller graph for this function:

◆ START_TEST()

START_TEST ( test_merge  )

◆ teardown()

static void teardown ( void  )
static

Definition at line 47 of file check_free_objects.cpp.

Referenced by bug_suite().

+ Here is the caller graph for this function: