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_format_ar.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_format_ar.c')
-rw-r--r-- | lib/libarchive/test/test_read_format_ar.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libarchive/test/test_read_format_ar.c b/lib/libarchive/test/test_read_format_ar.c index 006d20b..36c9c2a 100644 --- a/lib/libarchive/test/test_read_format_ar.c +++ b/lib/libarchive/test/test_read_format_ar.c @@ -28,6 +28,7 @@ #include "test.h" __FBSDID("$FreeBSD$"); +#if ARCHIVE_VERSION_STAMP >= 1009000 /* * This "archive" is created by "GNU ar". Here we try to verify * our GNU format handling functionality. @@ -54,9 +55,13 @@ static unsigned char archive[] = { '2','1',10}; char buff[64]; +#endif DEFINE_TEST(test_read_format_ar) { +#if ARCHIVE_VERSION_STAMP < 1009000 + skipping("test_read_support_format_ar()"); +#else struct archive_entry *ae; struct archive *a; assert((a = archive_read_new()) != NULL); @@ -112,4 +117,5 @@ DEFINE_TEST(test_read_format_ar) #else archive_read_finish(a); #endif +#endif } |