Apache HTTPD
Macros | Functions | Variables
testpools.c File Reference
#include "apr_general.h"
#include "apr_pools.h"
#include "apr_errno.h"
#include "apr_file_io.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "testutil.h"

Go to the source code of this file.

Macros

#define ALLOC_BYTES   1024
 

Functions

static void alloc_bytes (abts_case *tc, void *data)
 
static void calloc_bytes (abts_case *tc, void *data)
 
static void parent_pool (abts_case *tc, void *data)
 
static void child_pool (abts_case *tc, void *data)
 
static void test_ancestor (abts_case *tc, void *data)
 
static void test_notancestor (abts_case *tc, void *data)
 
static apr_status_t success_cleanup (void *data)
 
static apr_status_t checker_cleanup (void *data)
 
static void test_cleanups (abts_case *tc, void *data)
 
abts_suitetestpool (abts_suite *suite)
 

Variables

static apr_pool_tpmain = NULL
 
static apr_pool_tpchild = NULL
 
static charchecker_data = "Hello, world."
 

Macro Definition Documentation

◆ ALLOC_BYTES

#define ALLOC_BYTES   1024

Definition at line 30 of file testpools.c.

Function Documentation

◆ alloc_bytes()

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

Definition at line 35 of file testpools.c.

◆ calloc_bytes()

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

Definition at line 53 of file testpools.c.

◆ checker_cleanup()

static apr_status_t checker_cleanup ( void *  data)
static

Definition at line 102 of file testpools.c.

◆ child_pool()

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

Definition at line 76 of file testpools.c.

◆ parent_pool()

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

Definition at line 67 of file testpools.c.

◆ success_cleanup()

static apr_status_t success_cleanup ( void *  data)
static

Definition at line 95 of file testpools.c.

◆ test_ancestor()

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

Definition at line 85 of file testpools.c.

◆ test_cleanups()

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

Definition at line 107 of file testpools.c.

◆ test_notancestor()

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

Definition at line 90 of file testpools.c.

◆ testpool()

abts_suite * testpool ( abts_suite suite)

Definition at line 142 of file testpools.c.

Variable Documentation

◆ checker_data

char* checker_data = "Hello, world."
static

Definition at line 100 of file testpools.c.

◆ pchild

apr_pool_t* pchild = NULL
static

Definition at line 33 of file testpools.c.

◆ pmain

apr_pool_t* pmain = NULL
static

Definition at line 32 of file testpools.c.