Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Use the proper method for getting fully resolved temporary file paths
Browse files Browse the repository at this point in the history
This was a bug in the tests from mono/mono#15616
  • Loading branch information
alexischr committed Aug 20, 2019
1 parent dbfa00c commit e39bdd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/System.IO.FileSystem/tests/File/Copy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public void CopyOntoSelf()
[PlatformSpecific(TestPlatforms.AnyUnix)]
public void DanglingSymlinkCopy()
{
string dangling_symlink = GetTestFileName();
string missing_target = GetTestFileName();
string dangling_symlink_new_location = GetTestFileName();
string dangling_symlink = GetTestFilePath();
string missing_target = GetTestFilePath();
string dangling_symlink_new_location = GetTestFilePath();
Assert.False(File.Exists(missing_target));
Assert.Equal(symlink(missing_target, dangling_symlink), 0);
Copy(dangling_symlink, dangling_symlink_new_location);
Expand Down
6 changes: 3 additions & 3 deletions src/System.IO.FileSystem/tests/File/Move.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ public void MultipleMoves()
[PlatformSpecific(TestPlatforms.AnyUnix)]
public void DanglingSymlinkMove()
{
string dangling_symlink = GetTestFileName();
string missing_target = GetTestFileName();
string dangling_symlink_new_location = GetTestFileName();
string dangling_symlink = GetTestFilePath();
string missing_target = GetTestFilePath();
string dangling_symlink_new_location = GetTestFilePath();
Assert.False(File.Exists(missing_target));
Assert.Equal(symlink(missing_target, dangling_symlink), 0);
Move(dangling_symlink, dangling_symlink_new_location);
Expand Down

0 comments on commit e39bdd0

Please sign in to comment.