mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-12 05:25:03 +00:00
[PR #993] [MERGED] make test linux only #1413
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/993
Author: @adamhathcock
Created: 10/28/2025
Status: ✅ Merged
Merged: 10/28/2025
Merged by: @adamhathcock
Base:
master← Head:adam/macos-fixes📝 Commits (1)
bca0f67make test linux only📊 Changes
2 files changed (+22 additions, -28 deletions)
View changed files
📝
tests/SharpCompress.Test/SharpCompress.Test.csproj(+3 -0)📝
tests/SharpCompress.Test/Tar/TarReaderTests.cs(+19 -28)📄 Description
This pull request improves platform-specific test handling for symbolic links in tar archives, specifically targeting Linux environments. The main changes involve updating conditional compilation symbols and simplifying logic related to symlink extraction in the test suite.
Platform-specific test improvements:
LINUXcompilation constant in theSharpCompress.Test.csprojfile to enable Linux-specific code paths in tests.TarReaderTests.csto use#if LINUXinstead of runtime OS checks, ensuring that the symlink extraction test only runs on Linux.Code simplification for symlink extraction:
isWindows) and simplified the symbolic link handling logic in theTar_GZip_With_Symlink_Entriestest, making the code cleaner and more maintainable. [1] [2]🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.