diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-07-06 15:43:11 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-07-06 15:43:11 +0000 |
commit | 627342641db59a7eaa904ec6654e5622fb4653eb (patch) | |
tree | b17c1fbc8f181078146027ab4987cac1af8c73a3 /lib/libarchive/test/test_read_compress_program.c | |
parent | 8f8c5c97731ba5f5874c4278189ec2138711e819 (diff) | |
download | FreeBSD-src-627342641db59a7eaa904ec6654e5622fb4653eb.zip FreeBSD-src-627342641db59a7eaa904ec6654e5622fb4653eb.tar.gz |
Make test suite work with libarchive 1.3.1: Take advantage of
ARCHIVE_VERSION_STAMP to selectively disable tests that don't
apply to that version; new "skipping()" function reports skipped
tests; modify final summary to report component test failures and
skips.
Note: I don't currently intend to MFC the test suite itself;
anyone interested should just checkout and use this version
of the test suite, which should work for any library version.
Approved by: re (Ken Smith, blanket)
Diffstat (limited to 'lib/libarchive/test/test_read_compress_program.c')
-rw-r--r-- | lib/libarchive/test/test_read_compress_program.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libarchive/test/test_read_compress_program.c b/lib/libarchive/test/test_read_compress_program.c index 993e872..0127970 100644 --- a/lib/libarchive/test/test_read_compress_program.c +++ b/lib/libarchive/test/test_read_compress_program.c @@ -34,6 +34,9 @@ static unsigned char archive[] = { DEFINE_TEST(test_read_compress_program) { +#if ARCHIVE_VERSION_STAMP < 1009000 + skipping("archive_read_support_compression_program()"); +#else struct archive_entry *ae; struct archive *a; assert((a = archive_read_new()) != NULL); @@ -50,6 +53,7 @@ DEFINE_TEST(test_read_compress_program) #else archive_read_finish(a); #endif +#endif } |