Crossfire Server, Trunk
|
#include <stdlib.h>
#include <check.h>
#include <global.h>
#include <sproto.h>
#include <toolkit_common.h>
Go to the source code of this file.
Functions | |
static END_TEST Suite * | bug_suite (void) |
int | main (void) |
static void | setup (void) |
START_TEST (test_skills) | |
static void | teardown (void) |
This is the unit tests file for a duplicate skills bug that didn't get a tracker number. In short, when both the race and class had the same skill, the player would get a copy of each due to the objects not exactly matching when object_can_merge was called.
Definition in file check_duplicate_skills.c.
|
static |
Definition at line 90 of file check_duplicate_skills.c.
References setup(), and teardown().
Referenced by main().
int main | ( | void | ) |
Definition at line 103 of file check_duplicate_skills.c.
References bug_suite(), cctk_setdatadir(), and init().
|
static |
Definition at line 36 of file check_duplicate_skills.c.
Referenced by bug_suite().
START_TEST | ( | test_skills | ) |
Definition at line 42 of file check_duplicate_skills.c.
References socket_struct::account_chars, add_player(), ADD_PLAYER_NEW, ADD_PLAYER_NO_MAP, ADD_PLAYER_NO_STATS_ROLL, apply_race_and_class(), obj::arch, obj::below, liv::Cha, liv::Con, liv::Dex, socket_struct::faces_sent, find_archetype(), get_faces_count(), liv::Int, obj::inv, archt::name, pl::ob, altar_valkyrie::pl, liv::Pow, rotate-tower::result, SKILL, liv::Str, obj::type, and liv::Wis.
|
static |
Definition at line 39 of file check_duplicate_skills.c.
Referenced by bug_suite().