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

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 48 of file check_swap.c.

References add_string(), 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 137 of file check_swap.c.

References swap_suite().

+ Here is the call graph for this function:

◆ setup()

void setup ( void  )

Definition at line 40 of file check_swap.c.

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 83 of file check_swap.c.

References do_map(), 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 105 of file check_swap.c.

References block, do_map(), first_map, flush_old_maps(), MAP_IN_MEMORY, MAP_SWAPPED, and mapdef::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 91 of file check_swap.c.

References block, do_map(), first_map, flush_old_maps(), mapdef::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 74 of file check_swap.c.

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

+ Here is the call graph for this function:

◆ START_TEST() [5/6]

START_TEST ( test_simple_reset  )

Definition at line 60 of file check_swap.c.

References do_map(), 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 67 of file check_swap.c.

References do_map(), 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 119 of file check_swap.c.

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 44 of file check_swap.c.

Referenced by swap_suite().

+ Here is the caller graph for this function: