Apache HTTPD
Macros | Functions
testdup.c File Reference
#include "apr_general.h"
#include "apr_pools.h"
#include "apr_errno.h"
#include "apr_file_io.h"
#include "testutil.h"

Go to the source code of this file.

Macros

#define TEST   "Testing\n"
 
#define TEST2   "Testing again\n"
 
#define FILEPATH   "data/"
 

Functions

static void test_file_dup (abts_case *tc, void *data)
 
static void test_file_readwrite (abts_case *tc, void *data)
 
static void test_dup2 (abts_case *tc, void *data)
 
static void test_dup2_readwrite (abts_case *tc, void *data)
 
abts_suitetestdup (abts_suite *suite)
 

Macro Definition Documentation

◆ FILEPATH

#define FILEPATH   "data/"

Definition at line 26 of file testdup.c.

◆ TEST

#define TEST   "Testing\n"

Definition at line 24 of file testdup.c.

◆ TEST2

#define TEST2   "Testing again\n"

Definition at line 25 of file testdup.c.

Function Documentation

◆ test_dup2()

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

< Open the file for reading

< Open the file for writing

< Create the file if not there

< Delete the file after close

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

Definition at line 101 of file testdup.c.

◆ test_dup2_readwrite()

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

< Open the file for reading

< Open the file for writing

< Create the file if not there

< Delete the file after close

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

Definition at line 135 of file testdup.c.

◆ test_file_dup()

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

< Open the file for reading

< Open the file for writing

< Create the file if not there

< Delete the file after close

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

< an atomic unix apr_stat()

Definition at line 28 of file testdup.c.

◆ test_file_readwrite()

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

< Open the file for reading

< Open the file for writing

< Create the file if not there

< Delete the file after close

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

< an atomic unix apr_stat()

Definition at line 56 of file testdup.c.

◆ testdup()

abts_suite * testdup ( abts_suite suite)

Definition at line 187 of file testdup.c.