diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-07-14 17:54:14 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-07-14 17:54:14 +0000 |
commit | 77438828c722ed2d99dcd77f36cf20a88ba39d9a (patch) | |
tree | 3b52fac58472ac52653a43525cd4651902bf939c /lib | |
parent | 836c6c8f4b687158c309c88b0358a0f7ff36abd9 (diff) | |
download | FreeBSD-src-77438828c722ed2d99dcd77f36cf20a88ba39d9a.zip FreeBSD-src-77438828c722ed2d99dcd77f36cf20a88ba39d9a.tar.gz |
Use an uncompressed test archive for gtar sparse format 1.0 format,
as that better exercises some internal read-combining logic than the
compressed archive.
Approved by: re (blanket, libarchive testing)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libarchive/test/test_read_format_gtar_sparse.c | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/lib/libarchive/test/test_read_format_gtar_sparse.c b/lib/libarchive/test/test_read_format_gtar_sparse.c index b9f1d81..7847861 100644 --- a/lib/libarchive/test/test_read_format_gtar_sparse.c +++ b/lib/libarchive/test/test_read_format_gtar_sparse.c @@ -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)) |