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

Go to the source code of this file.

Functions

static mapstructdo_map (const char *tmpname, const char *reset_group)
 
int main (void)
 
void setup (void)
 
END_TEST START_TEST (test_reset_group_all)
 
END_TEST START_TEST (test_reset_group_blocked_not_swapped)
 
END_TEST START_TEST (test_reset_group_blocked_time)
 
END_TEST START_TEST (test_reset_group_other)
 
 START_TEST (test_simple_reset)
 
END_TEST START_TEST (test_simple_reset_group)
 
END_TEST Suite * swap_suite (void)
 
void teardown (void)
 

Function Documentation

◆ do_map()

static mapstruct* do_map ( const char *  tmpname,
const char *  reset_group 
)
static

Definition at line 49 of file check_swap.cpp.

References add_string(), FAIL_UNLESS, first_map, get_empty_map(), disinfect::map, MAP_SWAPPED, and strdup_local.

Referenced by START_TEST().

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

◆ main()

int main ( void  )

Definition at line 138 of file check_swap.cpp.

References swap_suite().

+ Here is the call graph for this function:

◆ setup()

void setup ( void  )

Definition at line 41 of file check_swap.cpp.

Referenced by swap_suite().

+ Here is the caller graph for this function:

◆ START_TEST() [1/6]

END_TEST START_TEST ( test_reset_group_all  )

Definition at line 84 of file check_swap.cpp.

References do_map(), FAIL_UNLESS, first_map, and flush_old_maps().

+ Here is the call graph for this function:

◆ START_TEST() [2/6]

END_TEST START_TEST ( test_reset_group_blocked_not_swapped  )

Definition at line 106 of file check_swap.cpp.

References block, do_map(), FAIL_UNLESS, first_map, flush_old_maps(), MAP_IN_MEMORY, MAP_SWAPPED, and mapstruct::next.

+ Here is the call graph for this function:

◆ START_TEST() [3/6]

END_TEST START_TEST ( test_reset_group_blocked_time  )

Definition at line 92 of file check_swap.cpp.

References block, do_map(), FAIL_UNLESS, first_map, flush_old_maps(), mapstruct::next, and seconds().

+ Here is the call graph for this function:

◆ START_TEST() [4/6]

END_TEST START_TEST ( test_reset_group_other  )

Definition at line 75 of file check_swap.cpp.

References do_map(), FAIL_UNLESS, first_map, flush_old_maps(), mapstruct::next, mapstruct::reset_time, and seconds().

+ Here is the call graph for this function:

◆ START_TEST() [5/6]

START_TEST ( test_simple_reset  )

Definition at line 61 of file check_swap.cpp.

References do_map(), FAIL_UNLESS, first_map, and flush_old_maps().

+ Here is the call graph for this function:

◆ START_TEST() [6/6]

END_TEST START_TEST ( test_simple_reset_group  )

Definition at line 68 of file check_swap.cpp.

References do_map(), FAIL_UNLESS, first_map, and flush_old_maps().

+ Here is the call graph for this function:

◆ swap_suite()

END_TEST Suite* swap_suite ( void  )

Definition at line 120 of file check_swap.cpp.

References setup(), and teardown().

Referenced by main().

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

◆ teardown()

void teardown ( void  )

Definition at line 45 of file check_swap.cpp.

Referenced by swap_suite().

+ Here is the caller graph for this function: