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

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)
 

Detailed Description

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.

Function Documentation

◆ bug_suite()

static END_TEST Suite* bug_suite ( void  )
static

Definition at line 88 of file check_duplicate_skills.c.

References setup(), and teardown().

Referenced by main().

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

◆ main()

int main ( void  )

Definition at line 101 of file check_duplicate_skills.c.

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

+ Here is the call graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 36 of file check_duplicate_skills.c.

Referenced by bug_suite().

+ Here is the caller graph for this function:

◆ START_TEST()

◆ teardown()

static void teardown ( void  )
static

Definition at line 39 of file check_duplicate_skills.c.

Referenced by bug_suite().

+ Here is the caller graph for this function: