#include <config.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <atf-c.h>
#include <isc/file.h>
#include <isc/result.h>
Go to the source code of this file.
Defines | |
#define | NAME "internal" |
#define | SHA "3bed2cb3a3acf7b6a8ef408420cc682d5520e26976d354254f528c965612054f" |
#define | TRUNC_SHA "3bed2cb3a3acf7b6" |
#define | BAD1 "in/internal" |
#define | BADHASH1 "8bbb97a888791399" |
#define | BAD2 "Internal" |
#define | BADHASH2 "2ea1842b445b0c81" |
#define | F(x) "testdata/file/" x ".test" |
Functions | |
ATF_TC (isc_file_sanitize) | |
ATF_TC_HEAD (isc_file_sanitize, tc) | |
static void | touch (const char *filename) |
ATF_TC_BODY (isc_file_sanitize, tc) | |
ATF_TP_ADD_TCS (tp) |
#define NAME "internal" |
Definition at line 34 of file file_test.c.
Referenced by ATF_TC_BODY(), create_node(), dns_rbtnode_nodename(), NODENAME(), and printnodename().
#define SHA "3bed2cb3a3acf7b6a8ef408420cc682d5520e26976d354254f528c965612054f" |
#define TRUNC_SHA "3bed2cb3a3acf7b6" |
#define BAD1 "in/internal" |
#define BADHASH1 "8bbb97a888791399" |
#define BAD2 "Internal" |
#define BADHASH2 "2ea1842b445b0c81" |
#define F | ( | x | ) | "testdata/file/" x ".test" |
ATF_TC | ( | isc_file_sanitize | ) |
ATF_TC_HEAD | ( | isc_file_sanitize | , | |
tc | ||||
) |
Definition at line 30 of file file_test.c.
static void touch | ( | const char * | filename | ) | [static] |
ATF_TC_BODY | ( | isc_file_sanitize | , | |
tc | ||||
) |
Definition at line 56 of file file_test.c.
References BAD1, BAD2, BADHASH1, BADHASH2, F, isc_file_sanitize(), ISC_R_SUCCESS, NAME, SHA, touch(), and TRUNC_SHA.
ATF_TP_ADD_TCS | ( | tp | ) |