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

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_apply)
 
static void teardown (void)
 

Detailed Description

Unit test for bug https://sourceforge.net/p/crossfire/bugs/883/ Monsters will not apply weapons in their inventory

Definition in file check_883.cpp.

Function Documentation

◆ bug_suite()

static END_TEST Suite* bug_suite ( void  )
static

Definition at line 57 of file check_883.cpp.

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 70 of file check_883.cpp.

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

+ Here is the call graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 35 of file check_883.cpp.

Referenced by bug_suite().

+ Here is the caller graph for this function:

◆ START_TEST()

START_TEST ( test_apply  )

Definition at line 41 of file check_883.cpp.

References create_archetype(), FAIL_UNLESS, FLAG_APPLIED, monster_check_apply_all(), object_insert_in_ob(), and QUERY_FLAG.

+ Here is the call graph for this function:

◆ teardown()

static void teardown ( void  )
static

Definition at line 38 of file check_883.cpp.

Referenced by bug_suite().

+ Here is the caller graph for this function: