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

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 49 of file check_path.cpp.

References FAIL_UNLESS, 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 66 of file check_path.cpp.

References FAIL_UNLESS, 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 56 of file check_path.cpp.

References FAIL_UNLESS, 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 144 of file check_path.cpp.

References path_suite().

+ Here is the call graph for this function:

◆ path_suite()

static END_TEST Suite* path_suite ( void  )
static

Definition at line 129 of file check_path.cpp.

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 41 of file check_path.cpp.

Referenced by path_suite().

+ Here is the caller graph for this function:

◆ START_TEST() [1/3]

START_TEST ( test_path_combine  )

Definition at line 73 of file check_path.cpp.

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 113 of file check_path.cpp.

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 85 of file check_path.cpp.

References check_normalize().

+ Here is the call graph for this function:

◆ teardown()

static void teardown ( void  )
static

Definition at line 45 of file check_path.cpp.

Referenced by path_suite().

+ Here is the caller graph for this function: