Skip to content

Commit

Permalink
[Test] Fix tests when using p7zip
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Nov 25, 2023
1 parent 9e7fc69 commit 8fb06cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/src/test_bitinputarchive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,13 @@ TEMPLATE_TEST_CASE( "BitInputArchive: Testing and extracting an archive with dif
const BitArchiveReader info( test::sevenzip_lib(), inputArchive, testFormat.format );

REQUIRE_ARCHIVE_TESTS( info );
#ifdef BIT7Z_BUILD_FOR_P7ZIP
// p7zip doesn't correctly report symbolic links in Wim and Tar archives.
if ( testFormat.format != BitFormat::Wim && testFormat.format != BitFormat::Tar ) {
#else
// 7-Zip doesn't correctly report symbolic links in Wim archives.
if ( testFormat.format != BitFormat::Wim ) {
#endif
// TODO(fix): Wim format gives some issues when extracting symbolic links.
REQUIRE_ARCHIVE_EXTRACTS( info, file_type_content().items );
}
Expand Down

0 comments on commit 8fb06cc

Please sign in to comment.