Skip to content

Test case failed. #481

@willson-chen

Description

@willson-chen

Steps to reproduce

  1. CI in windows, three test cases failed:
    https://ci.appveyor.com/project/icsharpcode/sharpziplib/branch/master/job/6kbl3jgxelrn1ndv
Errors, Failures and Warnings
1) Failed : ICSharpCode.SharpZipLib.Tests.Zip.StreamHandling.WriteZipStreamWithNoCompression(0)
  No entry matching source file "Users/appveyor/AppData/Local/Temp/1/tmpDF1A.tmp" found in archive, found "C:\Users\appveyor\AppData\Local\Temp\1\tmpDF1A.tmp"
  Expected: not null
  But was:  null
   at ICSharpCode.SharpZipLib.Tests.Zip.StreamHandling.WriteZipStreamWithNoCompression(Int32 contentLength) in C:\projects\sharpziplib\test\ICSharpCode.SharpZipLib.Tests\Zip\StreamHandling.cs:line 265
2) Failed : ICSharpCode.SharpZipLib.Tests.Zip.StreamHandling.WriteZipStreamWithNoCompression(1)
  No entry matching source file "Users/appveyor/AppData/Local/Temp/1/tmpDF7A.tmp" found in archive, found "C:\Users\appveyor\AppData\Local\Temp\1\tmpDF7A.tmp"
  Expected: not null
  But was:  null
   at ICSharpCode.SharpZipLib.Tests.Zip.StreamHandling.WriteZipStreamWithNoCompression(Int32 contentLength) in C:\projects\sharpziplib\test\ICSharpCode.SharpZipLib.Tests\Zip\StreamHandling.cs:line 265
3) Failed : ICSharpCode.SharpZipLib.Tests.Zip.StreamHandling.WriteZipStreamWithNoCompression(256)
  No entry matching source file "Users/appveyor/AppData/Local/Temp/1/tmpDF7C.tmp" found in archive, found "C:\Users\appveyor\AppData\Local\Temp\1\tmpDF7C.tmp"
  Expected: not null
  But was:  null
   at ICSharpCode.SharpZipLib.Tests.Zip.StreamHandling.WriteZipStreamWithNoCompression(Int32 contentLength) in C:\projects\sharpziplib\test\ICSharpCode.SharpZipLib.Tests\Zip\StreamHandling.cs:line 265
Run Settings
    Number of Test Workers: 2
    Work Directory: C:\projects\sharpziplib
    Internal Trace: Off
Test Run Summary
  Overall result: Failed
  Test Count: 235, Passed: 217, Failed: 3, Warnings: 0, Inconclusive: 0, Skipped: 15
    Failed Tests - Failures: 3, Errors: 0, Invalid: 0
    Skipped Tests - Ignored: 3, Explicit: 12, Other: 0
  Start time: 2020-07-04 16:30:00Z
    End time: 2020-07-04 16:30:13Z
    Duration: 12.339 seconds
  1. Test in linux, ten test cases failed:
    The command was: dotnet run -c Release -f netcoreapp2 -p test/ICSharpCode.SharpZipLib.TestBootstrapper/ICSharpCode.SharpZipLib.TestBootstrapper.csproj
    test_linux_fail.log
Errors, Failures and Warnings

1) Failed : ICSharpCode.SharpZipLib.Tests.Zip.FastZipHandling.SetDirectoryModifiedDate
  Expected: 2001-01-02 00:00:00
  But was:  2001-01-02 08:00:00
   at ICSharpCode.SharpZipLib.Tests.Zip.FastZipHandling.SetDirectoryModifiedDate() in /root/workspace/hanqiang/sharpZipLib/SharpZipLib-master/test/ICSharpCode.SharpZipLib.Tests/Zip/FastZipHandling.cs:line 612

2) Failed : ICSharpCode.SharpZipLib.Tests.Zip.StreamHandling.WriteZipStreamWithNoCompression(0)
  No entry matching source file "tmp/tmpJD38Z1.tmp" found in archive, found "/tmp/tmpJD38Z1.tmp"
  Expected: not null
  But was:  null
   at ICSharpCode.SharpZipLib.Tests.Zip.StreamHandling.WriteZipStreamWithNoCompression(Int32 contentLength) in /root/workspace/hanqiang/sharpZipLib/SharpZipLib-master/test/ICSharpCode.SharpZipLib.Tests/Zip/StreamHandling.cs:line 267

3) Failed : ICSharpCode.SharpZipLib.Tests.Zip.StreamHandling.WriteZipStreamWithNoCompression(1)
  No entry matching source file "tmp/tmplGyoGA.tmp" found in archive, found "/tmp/tmplGyoGA.tmp"
  Expected: not null
  But was:  null
   at ICSharpCode.SharpZipLib.Tests.Zip.StreamHandling.WriteZipStreamWithNoCompression(Int32 contentLength) in /root/workspace/hanqiang/sharpZipLib/SharpZipLib-master/test/ICSharpCode.SharpZipLib.Tests/Zip/StreamHandling.cs:line 267

4) Failed : ICSharpCode.SharpZipLib.Tests.Zip.StreamHandling.WriteZipStreamWithNoCompression(256)
  No entry matching source file "tmp/tmpL4aRm9.tmp" found in archive, found "/tmp/tmpL4aRm9.tmp"
  Expected: not null
  But was:  null
   at ICSharpCode.SharpZipLib.Tests.Zip.StreamHandling.WriteZipStreamWithNoCompression(Int32 contentLength) in /root/workspace/hanqiang/sharpZipLib/SharpZipLib-master/test/ICSharpCode.SharpZipLib.Tests/Zip/StreamHandling.cs:line 267

5) Failed : ICSharpCode.SharpZipLib.Tests.Zip.WindowsNameTransformHandling.BasicDirectories
  Should be equal
  String lengths are both 14. Strings differ at index 8.
  Expected: "absolute\\file2"
  But was:  "absolute/file2"
  -------------------^
   at ICSharpCode.SharpZipLib.Tests.Zip.WindowsNameTransformHandling.BasicDirectories() in /root/workspace/hanqiang/sharpZipLib/SharpZipLib-master/test/ICSharpCode.SharpZipLib.Tests/Zip/WindowsNameTransformHandling.cs:line 123

6) Failed : ICSharpCode.SharpZipLib.Tests.Zip.WindowsNameTransformHandling.BasicFiles
  Should be equal
  Expected string length 16 but was 18. Strings differ at index 6.
  Expected: "zebidi/and/dylan"
  But was:  "zebidi\\/and\\/dylan"
  -----------------^

7) Failed : ICSharpCode.SharpZipLib.Tests.Zip.WindowsNameTransformHandling.Replacement
  Should be equal
  Expected string length 3 but was 4. Strings differ at index 1.
  Expected: "c/_"
  But was:  "c\\/_"
  ------------^

8) Failed : ICSharpCode.SharpZipLib.Tests.Zip.WindowsNameTransformHandling.ReplacementChecking
Expected an exception
   at ICSharpCode.SharpZipLib.Tests.Zip.WindowsNameTransformHandling.ReplacementChecking() in /root/workspace/hanqiang/sharpZipLib/SharpZipLib-master/test/ICSharpCode.SharpZipLib.Tests/Zip/WindowsNameTransformHandling.cs:line 107
...
...
...
17) Failed : ICSharpCode.SharpZipLib.Tests.Zip.ZipEntryFactoryHandling.CreatedValues
  Create time failure
  Expected: 2100-02-27 11:07:56
  But was:  2020-07-13 10:38:22.2627132
   at ICSharpCode.SharpZipLib.Tests.Zip.ZipEntryFactoryHandling.CreatedValues() in /root/workspace/hanqiang/sharpZipLib/SharpZipLib-master/test/ICSharpCode.SharpZipLib.Tests/Zip/ZipEntryFactoryHandling.cs:line 135

18) Failed : ICSharpCode.SharpZipLib.Tests.Zip.ZipNameTransformHandling.FilenameCleaning
  Expected: 0
  But was:  21
   at ICSharpCode.SharpZipLib.Tests.Zip.ZipNameTransformHandling.FilenameCleaning() in /root/workspace/hanqiang/sharpZipLib/SharpZipLib-master/test/ICSharpCode.SharpZipLib.Tests/Zip/ZipNameTransformHandling.cs:line 85

Run Settings
    Number of Test Workers: 4
    Work Directory: /root/workspace/hanqiang/sharpZipLib/SharpZipLib-master
    Internal Trace: Off

Test Run Summary
  Overall result: Failed
  Test Count: 235, Passed: 202, Failed: 10, Warnings: 8, Inconclusive: 0, Skipped: 15
    Failed Tests - Failures: 10, Errors: 0, Invalid: 0
    Skipped Tests - Ignored: 3, Explicit: 12, Other: 0
  Start time: 2020-07-13 02:38:13Z
    End time: 2020-07-13 02:38:23Z
    Duration: 9.158 seconds

Expected behavior

Test cases all passed.

Actual behavior

Windows three test cases failed.
linux ten test cases failed.

Version of SharpZipLib

master branch.

Obtained from (only keep the relevant lines)

Metadata

Metadata

Assignees

No one assigned

    Labels

    testszipRelated to ZIP file format

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions