Crossfire Server, Trunk
|
#include <stdlib.h>
#include <check.h>
#include "global.h"
#include "sproto.h"
#include "map.h"
#include "toolkit_common.h"
Go to the source code of this file.
Functions | |
static mapstruct * | do_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) |
|
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().
int main | ( | void | ) |
Definition at line 138 of file check_swap.cpp.
References swap_suite().
void setup | ( | void | ) |
Definition at line 41 of file check_swap.cpp.
Referenced by swap_suite().
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().
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.
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().
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().
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().
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().
END_TEST Suite* swap_suite | ( | void | ) |
Definition at line 120 of file check_swap.cpp.
References setup(), and teardown().
Referenced by main().
void teardown | ( | void | ) |
Definition at line 45 of file check_swap.cpp.
Referenced by swap_suite().