File tree 4 files changed +12
-4
lines changed
src/libraries/System.Formats.Tar/tests 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 166
166
<Uri >https://github.com/dotnet/runtime-assets</Uri >
167
167
<Sha >42999f1b16859553727672ef4087742aab7be681</Sha >
168
168
</Dependency >
169
- <Dependency Name =" System.Formats.Tar.TestData" Version =" 7.0.0-beta.22531 .1" >
169
+ <Dependency Name =" System.Formats.Tar.TestData" Version =" 7.0.0-beta.22552 .1" >
170
170
<Uri >https://github.com/dotnet/runtime-assets</Uri >
171
- <Sha >42999f1b16859553727672ef4087742aab7be681 </Sha >
171
+ <Sha >a6e2984f63e3809fcdc607bc88bbf257a6c6b4e4 </Sha >
172
172
</Dependency >
173
173
<Dependency Name =" System.IO.Compression.TestData" Version =" 7.0.0-beta.22531.1" >
174
174
<Uri >https://github.com/dotnet/runtime-assets</Uri >
Original file line number Diff line number Diff line change 145
145
<SystemRuntimeNumericsTestDataVersion >7.0.0-beta.22531.1</SystemRuntimeNumericsTestDataVersion >
146
146
<SystemComponentModelTypeConverterTestDataVersion >7.0.0-beta.22531.1</SystemComponentModelTypeConverterTestDataVersion >
147
147
<SystemDrawingCommonTestDataVersion >7.0.0-beta.22531.1</SystemDrawingCommonTestDataVersion >
148
- <SystemFormatsTarTestDataVersion >7.0.0-beta.22531 .1</SystemFormatsTarTestDataVersion >
148
+ <SystemFormatsTarTestDataVersion >7.0.0-beta.22552 .1</SystemFormatsTarTestDataVersion >
149
149
<SystemIOCompressionTestDataVersion >7.0.0-beta.22531.1</SystemIOCompressionTestDataVersion >
150
150
<SystemIOPackagingTestDataVersion >7.0.0-beta.22531.1</SystemIOPackagingTestDataVersion >
151
151
<SystemNetTestDataVersion >7.0.0-beta.22531.1</SystemNetTestDataVersion >
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ public async Task ExtractEntry_DockerImageTarWithFileTypeInDirectoriesInMode_Suc
102
102
{
103
103
using ( TempDirectory root = new TempDirectory ( ) )
104
104
{
105
- await using MemoryStream archiveStream = GetTarMemoryStream ( CompressionMethod . Uncompressed , "golang_tar " , "docker-hello-world" ) ;
105
+ await using MemoryStream archiveStream = GetTarMemoryStream ( CompressionMethod . Uncompressed , "misc " , "docker-hello-world" ) ;
106
106
await TarFile . ExtractToDirectoryAsync ( archiveStream , root . Path , overwriteFiles : true ) ;
107
107
108
108
Assert . True ( File . Exists ( Path . Join ( root . Path , "manifest.json" ) ) ) ;
Original file line number Diff line number Diff line change @@ -241,6 +241,14 @@ public void Throw_SingleExtendedAttributesEntryWithNoActualEntry()
241
241
Assert . Throws < EndOfStreamException > ( ( ) => reader . GetNextEntry ( ) ) ;
242
242
}
243
243
244
+ [ Fact ]
245
+ public void ReadDataStreamOfGoLangTarGzGnu ( )
246
+ {
247
+ using MemoryStream archiveStream = GetTarMemoryStream ( CompressionMethod . GZip , "golang_tar" , "pax-bad-hdr-large" ) ;
248
+ using GZipStream decompressor = new GZipStream ( archiveStream , CompressionMode . Decompress ) ;
249
+ VerifyDataStreamOfTarInternal ( decompressor , copyData : false ) ;
250
+ }
251
+
244
252
[ Theory ]
245
253
[ InlineData ( "tar-rs" , "spaces" ) ]
246
254
[ InlineData ( "golang_tar" , "v7" ) ]
You can’t perform that action at this time.
0 commit comments