Apache HTTPD
Macros | Functions | Variables
testtime.c File Reference
#include "apr_time.h"
#include "apr_errno.h"
#include "apr_general.h"
#include "apr_lib.h"
#include "testutil.h"
#include "apr_strings.h"
#include <time.h>

Go to the source code of this file.

Macros

#define STR_SIZE   45
 
#define CHK_FIELD(f)    ABTS_ASSERT(tc, "Mismatch in " #f, posix_exp->f == xt.f)
 

Functions

static charprint_time (apr_pool_t *pool, const apr_time_exp_t *xt)
 
static void test_now (abts_case *tc, void *data)
 
static void test_gmtstr (abts_case *tc, void *data)
 
static void test_exp_lt (abts_case *tc, void *data)
 
static void test_exp_get_gmt (abts_case *tc, void *data)
 
static void test_exp_get_lt (abts_case *tc, void *data)
 
static void test_imp_gmt (abts_case *tc, void *data)
 
static void test_rfcstr (abts_case *tc, void *data)
 
static void test_ctime (abts_case *tc, void *data)
 
static void test_strftime (abts_case *tc, void *data)
 
static void test_strftimesmall (abts_case *tc, void *data)
 
static void test_exp_tz (abts_case *tc, void *data)
 
static void test_strftimeoffset (abts_case *tc, void *data)
 
static void test_2038 (abts_case *tc, void *data)
 
abts_suitetesttime (abts_suite *suite)
 

Variables

static apr_time_t now = APR_INT64_C(1032030336186711)
 
static apr_time_t leap_year_now = APR_INT64_C(1344715255151600)
 

Macro Definition Documentation

◆ CHK_FIELD

#define CHK_FIELD (   f)     ABTS_ASSERT(tc, "Mismatch in " #f, posix_exp->f == xt.f)

◆ STR_SIZE

#define STR_SIZE   45

Definition at line 25 of file testtime.c.

Function Documentation

◆ print_time()

static char * print_time ( apr_pool_t pool,
const apr_time_exp_t xt 
)
static

Definition at line 37 of file testtime.c.

◆ test_2038()

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

Definition at line 279 of file testtime.c.

◆ test_ctime()

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

Definition at line 188 of file testtime.c.

◆ test_exp_get_gmt()

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

Definition at line 123 of file testtime.c.

◆ test_exp_get_lt()

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

Definition at line 141 of file testtime.c.

◆ test_exp_lt()

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

Definition at line 87 of file testtime.c.

◆ test_exp_tz()

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

Definition at line 240 of file testtime.c.

◆ test_gmtstr()

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

Definition at line 73 of file testtime.c.

◆ test_imp_gmt()

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

Definition at line 159 of file testtime.c.

◆ test_now()

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

Definition at line 55 of file testtime.c.

◆ test_rfcstr()

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

Definition at line 175 of file testtime.c.

◆ test_strftime()

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

Definition at line 207 of file testtime.c.

◆ test_strftimeoffset()

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

Definition at line 262 of file testtime.c.

◆ test_strftimesmall()

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

Definition at line 224 of file testtime.c.

◆ testtime()

abts_suite * testtime ( abts_suite suite)

Definition at line 296 of file testtime.c.

Variable Documentation

◆ leap_year_now

apr_time_t leap_year_now = APR_INT64_C(1344715255151600)
static

Definition at line 35 of file testtime.c.

◆ now

apr_time_t now = APR_INT64_C(1032030336186711)
static

Definition at line 33 of file testtime.c.