diff options
author | Tim Kientzle <kientzle@FreeBSD.org> | 2008-08-21 07:04:57 +0000 |
---|---|---|
committer | Tim Kientzle <kientzle@FreeBSD.org> | 2008-08-21 07:04:57 +0000 |
commit | 503b743566928388aed3227faac48233cb1c611c (patch) | |
tree | 36be5e393d3f1eed4e9e7728d5ace958c5451feb /usr.bin/tar/test/test.h | |
parent | e0e53b4111f9fb84f5c3d74bcf7cfe4758380a2a (diff) |
Add some more tests to verify that "./foo" matches "foo" but "/foo" does not.
Notes
Notes:
svn path=/head/; revision=181959
Diffstat (limited to 'usr.bin/tar/test/test.h')
-rw-r--r-- | usr.bin/tar/test/test.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/tar/test/test.h b/usr.bin/tar/test/test.h index 39a98376f330..bb7003eb9dbb 100644 --- a/usr.bin/tar/test/test.h +++ b/usr.bin/tar/test/test.h @@ -98,6 +98,9 @@ /* Assert that a file is empty; supports printf-style arguments. */ #define assertEmptyFile \ test_setup(__FILE__, __LINE__);test_assert_empty_file +/* Assert that a file is not empty; supports printf-style arguments. */ +#define assertNonEmptyFile \ + test_setup(__FILE__, __LINE__);test_assert_non_empty_file /* Assert that a file exists; supports printf-style arguments. */ #define assertFileExists \ test_setup(__FILE__, __LINE__);test_assert_file_exists @@ -123,6 +126,7 @@ void test_setup(const char *, int); void test_skipping(const char *fmt, ...); int test_assert(const char *, int, int, const char *, void *); int test_assert_empty_file(const char *, ...); +int test_assert_non_empty_file(const char *, ...); int test_assert_equal_file(const char *, const char *, ...); int test_assert_equal_int(const char *, int, int, const char *, int, const char *, void *); int test_assert_equal_string(const char *, int, const char *v1, const char *, const char *v2, const char *, void *); |