Apache HTTPD
Classes | Macros | Functions | Variables
testfnmatch.c File Reference
#include "testutil.h"
#include "apr_file_info.h"
#include "apr_fnmatch.h"
#include "apr_tables.h"

Go to the source code of this file.

Classes

struct  pattern_s
 

Macros

#define NUM_FILES   (2)
 
#define APR_FNM_BITS   15
 
#define APR_FNM_FAILBIT   256
 
#define FAILS_IF(X)   0, X
 
#define SUCCEEDS_IF(X)   X, 256
 
#define SUCCEEDS   0, 256
 
#define FAILS   256, 0
 

Functions

static void test_fnmatch (abts_case *tc, void *data)
 
static void test_fnmatch_test (abts_case *tc, void *data)
 
static void test_glob (abts_case *tc, void *data)
 
static void test_glob_currdir (abts_case *tc, void *data)
 
abts_suitetestfnmatch (abts_suite *suite)
 

Variables

static struct pattern_s patterns []
 

Macro Definition Documentation

◆ APR_FNM_BITS

#define APR_FNM_BITS   15

Definition at line 28 of file testfnmatch.c.

◆ APR_FNM_FAILBIT

#define APR_FNM_FAILBIT   256

Definition at line 29 of file testfnmatch.c.

◆ FAILS

#define FAILS   256, 0

Definition at line 34 of file testfnmatch.c.

◆ FAILS_IF

#define FAILS_IF (   X)    0, X

Definition at line 31 of file testfnmatch.c.

◆ NUM_FILES

#define NUM_FILES   (2)

Definition at line 26 of file testfnmatch.c.

◆ SUCCEEDS

#define SUCCEEDS   0, 256

Definition at line 33 of file testfnmatch.c.

◆ SUCCEEDS_IF

#define SUCCEEDS_IF (   X)    X, 256

Definition at line 32 of file testfnmatch.c.

Function Documentation

◆ test_fnmatch()

static void test_fnmatch ( abts_case tc,
void *  data 
)
static

< Match failed.

Definition at line 144 of file testfnmatch.c.

◆ test_fnmatch_test()

static void test_fnmatch_test ( abts_case tc,
void *  data 
)
static

Definition at line 177 of file testfnmatch.c.

◆ test_glob()

static void test_glob ( abts_case tc,
void *  data 
)
static

Definition at line 206 of file testfnmatch.c.

◆ test_glob_currdir()

static void test_glob_currdir ( abts_case tc,
void *  data 
)
static

Definition at line 224 of file testfnmatch.c.

◆ testfnmatch()

abts_suite * testfnmatch ( abts_suite suite)

Definition at line 245 of file testfnmatch.c.

Variable Documentation

◆ patterns

struct pattern_s patterns[]
static