26#define FILENAME "data/file_datafile.txt"
27#define NEWFILENAME "data/new_datafile.txt"
28#define NEWFILEDATA "This is new text in a new file."
54 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo must return APR_FINFO_TYPE",
56 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in filetype",
57 f1->filetype ==
f2->filetype);
58 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo must return APR_FINFO_SIZE",
60 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in size",
61 f1->size ==
f2->size);
62 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo must return APR_FINFO_ATIME",
64 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in atime",
65 f1->atime ==
f2->atime);
66 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo must return APR_FINFO_MTIME",
68 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in mtime",
69 f1->mtime ==
f2->mtime);
70 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo must return APR_FINFO_CTIME",
72 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in ctime",
73 f1->ctime ==
f2->ctime);
76 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in name",
78 if (
f1->fname &&
f2->fname)
79 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in fname",
84 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in user",
87 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in group",
90 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in inode",
91 f1->inode ==
f2->inode);
93 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in device",
94 f1->device ==
f2->device);
96 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in nlink",
97 f1->nlink ==
f2->nlink);
99 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in csize",
100 f1->csize ==
f2->csize);
102 ABTS_ASSERT(tc,
"apr_stat and apr_getfileinfo differ in protection",
103 f1->protection ==
f2->protection);
void abts_run_test(abts_suite *ts, test_func f, void *value)
#define ABTS_ASSERT(a, b, c)
#define ABTS_INT_EQUAL(a, b, c)
#define APR_ASSERT_SUCCESS(tc, ctxt, rv)
APR Miscellaneous library routines.
APR general purpose library routines.
#define APR_STATUS_IS_INCOMPLETE(s)
const char const apr_size_t data_len
#define APR_FOPEN_TRUNCATE
#define APR_FOPEN_DELONCLOSE
#define APR_FOPEN_BUFFERED
const void apr_size_t bytes
static void test_buffered_write_size(abts_case *tc, void *data)
static void test_stat_eq_finfo(abts_case *tc, void *data)
static void test_stat(abts_case *tc, void *data)
static void test_mtime_set(abts_case *tc, void *data)
abts_suite * testfileinfo(abts_suite *suite)
static void finfo_equal(abts_case *tc, apr_finfo_t *f1, apr_finfo_t *f2)
static void test_info_get(abts_case *tc, void *data)
static const struct view_fileinfo vfi[]