diff options
author | mm <mm@FreeBSD.org> | 2012-07-27 08:24:12 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2012-07-27 08:24:12 +0000 |
commit | e7b24010c4d2190a1465594620e629e469c522f8 (patch) | |
tree | 4b551422581ae9a8093415e07c619e2a59ef6a7b /tar/test/test.h | |
parent | b3125341847b997f9f4943129b21004310c1cacd (diff) | |
download | FreeBSD-src-e7b24010c4d2190a1465594620e629e469c522f8.zip FreeBSD-src-e7b24010c4d2190a1465594620e629e469c522f8.tar.gz |
Update libarchive's vendor dist to version 3.0.4 from release branch.
Git branch: release
Git commit: 8076b31490c90aaf0edccecf760004c30bd95edc
Obtained from: https://github.com/libarchive/libarchive.git
Diffstat (limited to 'tar/test/test.h')
-rw-r--r-- | tar/test/test.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tar/test/test.h b/tar/test/test.h index f8682d5..46abb59 100644 --- a/tar/test/test.h +++ b/tar/test/test.h @@ -196,11 +196,15 @@ #define assertMakeDir(dirname, mode) \ assertion_make_dir(__FILE__, __LINE__, dirname, mode) #define assertMakeFile(path, mode, contents) \ - assertion_make_file(__FILE__, __LINE__, path, mode, contents) + assertion_make_file(__FILE__, __LINE__, path, mode, -1, contents) +#define assertMakeBinFile(path, mode, csize, contents) \ + assertion_make_file(__FILE__, __LINE__, path, mode, csize, contents) #define assertMakeHardlink(newfile, oldfile) \ assertion_make_hardlink(__FILE__, __LINE__, newfile, oldfile) #define assertMakeSymlink(newfile, linkto) \ assertion_make_symlink(__FILE__, __LINE__, newfile, linkto) +#define assertNodump(path) \ + assertion_nodump(__FILE__, __LINE__, path) #define assertUmask(mask) \ assertion_umask(__FILE__, __LINE__, mask) #define assertUtimes(pathname, atime, atime_nsec, mtime, mtime_nsec) \ @@ -243,9 +247,10 @@ int assertion_is_not_hardlink(const char *, int, const char *, const char *); int assertion_is_reg(const char *, int, const char *, int); int assertion_is_symlink(const char *, int, const char *, const char *); int assertion_make_dir(const char *, int, const char *, int); -int assertion_make_file(const char *, int, const char *, int, const char *); +int assertion_make_file(const char *, int, const char *, int, int, const void *); int assertion_make_hardlink(const char *, int, const char *newpath, const char *); int assertion_make_symlink(const char *, int, const char *newpath, const char *); +int assertion_nodump(const char *, int, const char *); int assertion_non_empty_file(const char *, int, const char *); int assertion_text_file_contents(const char *, int, const char *buff, const char *f); int assertion_umask(const char *, int, int); @@ -269,6 +274,9 @@ int canGzip(void); /* Return true if this platform can run the "gunzip" program. */ int canGunzip(void); +/* Return true if this filesystem can handle nodump flags. */ +int canNodump(void); + /* Return true if the file has large i-node number(>0xffffffff). */ int is_LargeInode(const char *); |