Apache HTTPD
Macros | Functions | Variables
testenv.c File Reference
#include "apr_env.h"
#include "apr_errno.h"
#include "testutil.h"

Go to the source code of this file.

Macros

#define TEST_ENVVAR_NAME   "apr_test_envvar"
 
#define TEST_ENVVAR2_NAME   "apr_test_envvar2"
 
#define TEST_ENVVAR_VALUE   "Just a value that we'll check"
 

Functions

static void test_setenv (abts_case *tc, void *data)
 
static void test_getenv (abts_case *tc, void *data)
 
static void test_delenv (abts_case *tc, void *data)
 
static void test_emptyenv (abts_case *tc, void *data)
 
abts_suitetestenv (abts_suite *suite)
 

Variables

static int have_env_set
 
static int have_env_get
 
static int have_env_del
 

Macro Definition Documentation

◆ TEST_ENVVAR2_NAME

#define TEST_ENVVAR2_NAME   "apr_test_envvar2"

Definition at line 22 of file testenv.c.

◆ TEST_ENVVAR_NAME

#define TEST_ENVVAR_NAME   "apr_test_envvar"

Definition at line 21 of file testenv.c.

◆ TEST_ENVVAR_VALUE

#define TEST_ENVVAR_VALUE   "Just a value that we'll check"

Definition at line 23 of file testenv.c.

Function Documentation

◆ test_delenv()

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

Definition at line 62 of file testenv.c.

◆ test_emptyenv()

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=40764

Set empty string and test that rv != ENOENT)

Delete and retest

Set second variable + test

Finally, test ENOENT (first variable) followed by second != ENOENT)

Cleanup

Definition at line 89 of file testenv.c.

◆ test_getenv()

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

Definition at line 42 of file testenv.c.

◆ test_setenv()

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

Definition at line 29 of file testenv.c.

◆ testenv()

abts_suite * testenv ( abts_suite suite)

Definition at line 133 of file testenv.c.

Variable Documentation

◆ have_env_del

int have_env_del
static

Definition at line 27 of file testenv.c.

◆ have_env_get

int have_env_get
static

Definition at line 26 of file testenv.c.

◆ have_env_set

int have_env_set
static

Definition at line 25 of file testenv.c.