Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reenable BlockMap negative tests #84

Merged
merged 3 commits into from
Apr 15, 2019
Merged

Reenable BlockMap negative tests #84

merged 3 commits into from
Apr 15, 2019

Conversation

msftrubengu
Copy link
Collaborator

He had to disable some BlockMap tests because the packages were from Win8. This change recreates the tests with new Win10 faulty packages.

Expected behavior:
G:\msix-packaging.vs>bin\makemsix.exe unpack -d try -p File_missing_from_blockmap.msix -ss
Microsoft (R) makemsix version 1.6.57
Copyright (C) 2017 Microsoft. All rights reserved.
Error: 8bad0051
LOG:
Payload file not described in AppxBlockMap.xml
Call failed in G:\msix-packaging\src\msix\AppxPackageObject.cpp on line 364
Call failed in G:\msix-packaging\src\msix\msix.cpp on line 66

G:\msix-packaging.vs>bin\makemsix.exe unpack -d try -p Extra_file_in_blockmap.msix -ss
Microsoft (R) makemsix version 1.6.57
Copyright (C) 2017 Microsoft. All rights reserved.
Error: 80070002
LOG:
File described in blockmap not contained in OPC container
Call failed in G:\msix-packaging\src\msix\AppxPackageObject.cpp on line 354
Call failed in G:\msix-packaging\src\msix\msix.cpp on line 66

G:\msix-packaging.vs>bin\makemsix.exe unpack -d try -p Size_wrong_uncompressed.msix -ss
Microsoft (R) makemsix version 1.6.57
Copyright (C) 2017 Microsoft. All rights reserved.
Error: 8bad0051
LOG:
Uncompressed size of the file in the block map and the OPC container don't match
Call failed in G:\msix-packaging\src\msix\AppxPackageObject.cpp on line 414
Call failed in G:\msix-packaging\src\msix\msix.cpp on line 66

G:\msix-packaging.vs>bin\makemsix.exe unpack -d ouput -p Invalid_Bad_Block.msix -ss
Microsoft (R) makemsix version 1.6.57
Copyright (C) 2017 Microsoft. All rights reserved.
Error: 8bad0051
LOG:
Compressed size of the file in the block map and the OPC container don't match
Call failed in G:\msix-packaging\src\msix\AppxPackageObject.cpp on line 406
Call failed in G:\msix-packaging\src\msix\msix.cpp on line 66

TODO: recreate bundles

Copy link
Member

@JohnMcPMS JohnMcPMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@msftrubengu msftrubengu merged commit 6edc2c8 into master Apr 15, 2019
@msftrubengu msftrubengu deleted the update_old_packages branch April 15, 2019 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants