diff options
Diffstat (limited to 'archivers/libarchive/files/libarchive/test/test_read_format_gtar_sparse.c')
-rw-r--r-- | archivers/libarchive/files/libarchive/test/test_read_format_gtar_sparse.c | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/archivers/libarchive/files/libarchive/test/test_read_format_gtar_sparse.c b/archivers/libarchive/files/libarchive/test/test_read_format_gtar_sparse.c index dddf6680115..a3d2a7b75f7 100644 --- a/archivers/libarchive/files/libarchive/test/test_read_format_gtar_sparse.c +++ b/archivers/libarchive/files/libarchive/test/test_read_format_gtar_sparse.c @@ -23,7 +23,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "test.h" -__FBSDID("$FreeBSD: src/lib/libarchive/test/test_read_format_gtar_sparse.c,v 1.3 2007/07/13 15:16:26 kientzle Exp $"); +__FBSDID("$FreeBSD: src/lib/libarchive/test/test_read_format_gtar_sparse.c,v 1.4 2007/07/14 17:54:14 kientzle Exp $"); /* * Each of the following is an archive of a single sparse file @@ -91,7 +91,12 @@ static unsigned char archive_0_1[] = { 164,'I',243,147,'H','$',18,227,240,1,'Q',127,'c',137,0,14,0,0}; /* GNU tar "1.0" posix format, as written by GNU tar 1.16.1. */ -#if 1 +/* + * Uncompressed, as that exercises some of the code better + * than compressed does. (The uncompression layers try to work with + * large blocks and the parsing code here has sections that have + * to work harder if reads return small pieces of data.) + */ static unsigned char archive_1_0[] = { '.','/','P','a','x','H','e','a','d','e','r','s','.','7','2','6','6','8','/', 's','p','a','r','s','e',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, @@ -229,25 +234,6 @@ static unsigned char archive_1_0[] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0}; -#else -static unsigned char archive_1_0[] = { -31,139,8,0,210,221,'l','F',0,3,237,148,207,'N',195,'0',12,198,'s',206,'S', -244,9,210,216,206,159,238,208,'+',236,132,144,16,15,16,'A',14,'E',219,'@', -201,'&','M','<','=','i','G','Q',133,'4','v','`','l',170,240,239,'b',235,'s', -20,'9','q',190,168,250,'>',236,151,'1','<',199,148,149,'G',231,154,':',191, -133,148,163,'8',31,186,224,140,233,'#','x',171,167,'q',0,193,10,208,142,8, -172,'3',30,133,6,178,218,139,'j',127,198,30,142,178,203,219,144,'J','+',191, -221,231,243,',','_','q','&',' ','V',183,'w',143,234,'0','s',181,14,'/',175, -169,5,249,'M',237,'6','E',213,18,221,'T',221,132,'u','l',15,185,'$',152,'V', -'R',12,171,220,189,199,150,192,'X',143,141,'D',']',133,'m','W',150,3,'4', -'`','i',225,200,244,218,211,'T','3',206,202,'k','_',198,'?','D',213,'e','p', -15,195,220,'n',186,'U',252,147,'/',224,132,255,169,183,203,232,127,4,'(', -254,183,224,181,168,'.','b',162,209,255,229,'-',254,184,238,'T','}',166,254, -'\'',185,'(',144,147,22,'P','B','I',27,143,'C','>','z','W',179,'+',153,227, -132,'k','7',192,204,26,'~','?',12,195,'0',12,'s','y','>',0,244,'|','e',9, -0,18,0,0}; -#endif - #endif #define min(a,b) ((a) < (b) ? (a) : (b)) |