Skip to content

Commit

Permalink
use complete namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Hathcock committed Mar 14, 2024
1 parent 95975a4 commit 4afc7ae
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tests/SharpCompress.Test/Tar/TarReaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
using SharpCompress.Readers.Tar;
using SharpCompress.Test.Mocks;
using Xunit;
#if !NETFRAMEWORK
using System.Runtime.InteropServices;
using Mono.Unix;
#endif


namespace SharpCompress.Test.Tar;

Expand Down Expand Up @@ -189,7 +184,9 @@ public void Tar_Broken_Stream()
[Fact]
public void Tar_GZip_With_Symlink_Entries()
{
var isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
var isWindows = System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(
System.Runtime.InteropServices.OSPlatform.Windows
);
using Stream stream = File.OpenRead(
Path.Combine(TEST_ARCHIVES_PATH, "TarWithSymlink.tar.gz")
);
Expand All @@ -210,7 +207,7 @@ public void Tar_GZip_With_Symlink_Entries()
{
if (!isWindows)
{
var link = new UnixSymbolicLinkInfo(sourcePath);
var link = new Mono.Unix.UnixSymbolicLinkInfo(sourcePath);
if (File.Exists(sourcePath))
{
link.Delete(); // equivalent to ln -s -f
Expand All @@ -225,7 +222,7 @@ public void Tar_GZip_With_Symlink_Entries()
if (reader.Entry.LinkTarget != null)
{
var path = Path.Combine(SCRATCH_FILES_PATH, reader.Entry.Key);
var link = new UnixSymbolicLinkInfo(path);
var link = new Mono.Unix.UnixSymbolicLinkInfo(path);
if (link.HasContents)
{
// need to convert the link to an absolute path for comparison
Expand Down

0 comments on commit 4afc7ae

Please sign in to comment.