Crossfire Server, Trunk
check_path.c File Reference
#include <stdlib.h>
#include <string.h>
#include <check.h>
#include <global.h>
#include "path.h"
+ Include dependency graph for check_path.c:

Go to the source code of this file.

Functions

static void check_combine (const char *src, const char *dst, const char *exp)
 
static void check_combine_and_normalize (const char *src, const char *dst, const char *exp)
 
static void check_normalize (const char *path, const char *exp)
 
int main (void)
 
static END_TEST Suite * path_suite (void)
 
static void setup (void)
 
 START_TEST (test_path_combine)
 
END_TEST START_TEST (test_path_combine_and_normalize)
 
END_TEST START_TEST (test_path_normalize)
 
static void teardown (void)
 

Function Documentation

◆ check_combine()

static void check_combine ( const char *  src,
const char *  dst,
const char *  exp 
)
static

Definition at line 48 of file check_path.c.

References HUGE_BUF, path_combine(), and altar_valkyrie::res.

Referenced by START_TEST().

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

◆ check_combine_and_normalize()

static void check_combine_and_normalize ( const char *  src,
const char *  dst,
const char *  exp 
)
static

Definition at line 65 of file check_path.c.

References HUGE_BUF, path_combine_and_normalize(), and altar_valkyrie::res.

Referenced by START_TEST().

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

◆ check_normalize()

static void check_normalize ( const char *  path,
const char *  exp 
)
static

Definition at line 55 of file check_path.c.

References HUGE_BUF, python_init::path, path_normalize(), and Ice::tmp.

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 143 of file check_path.c.

References path_suite().

+ Here is the call graph for this function:

◆ path_suite()

static END_TEST Suite* path_suite ( void  )
static

Definition at line 128 of file check_path.c.

References setup(), and teardown().

Referenced by main().

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

◆ setup()

static void setup ( void  )
static

Definition at line 40 of file check_path.c.

Referenced by path_suite().

+ Here is the caller graph for this function:

◆ START_TEST() [1/3]

START_TEST ( test_path_combine  )

Definition at line 72 of file check_path.c.

References check_combine().

+ Here is the call graph for this function:

◆ START_TEST() [2/3]

END_TEST START_TEST ( test_path_combine_and_normalize  )

Definition at line 112 of file check_path.c.

References check_combine_and_normalize().

+ Here is the call graph for this function:

◆ START_TEST() [3/3]

END_TEST START_TEST ( test_path_normalize  )

Definition at line 84 of file check_path.c.

References check_normalize().

+ Here is the call graph for this function:

◆ teardown()

static void teardown ( void  )
static

Definition at line 44 of file check_path.c.

Referenced by path_suite().

+ Here is the caller graph for this function: