file_test.c File Reference

#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 Documentation

#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"

Definition at line 35 of file file_test.c.

Referenced by ATF_TC_BODY().

#define TRUNC_SHA   "3bed2cb3a3acf7b6"

Definition at line 36 of file file_test.c.

Referenced by ATF_TC_BODY().

#define BAD1   "in/internal"

Definition at line 38 of file file_test.c.

Referenced by ATF_TC_BODY().

#define BADHASH1   "8bbb97a888791399"

Definition at line 39 of file file_test.c.

Referenced by ATF_TC_BODY().

#define BAD2   "Internal"

Definition at line 41 of file file_test.c.

Referenced by ATF_TC_BODY().

#define BADHASH2   "2ea1842b445b0c81"

Definition at line 42 of file file_test.c.

Referenced by ATF_TC_BODY().

#define F (  )     "testdata/file/" x ".test"

Definition at line 44 of file file_test.c.

Referenced by ATF_TC_BODY().


Function Documentation

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]

Definition at line 47 of file file_test.c.

Referenced by ATF_TC_BODY().

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   ) 

Definition at line 91 of file file_test.c.

References isc_file_sanitize().


Generated on Tue Apr 28 17:41:18 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha