Use the proper method for getting fully resolved temporary file paths

This was a bug in the tests from https://github.com/mono/mono/pull/15616
This commit is contained in:
Alexis Christoforides 2019-08-20 13:53:59 -04:00
Родитель dbfa00cdb2
Коммит e39bdd0ac8
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -56,9 +56,9 @@ namespace System.IO.Tests
[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);

Просмотреть файл

@ -182,9 +182,9 @@ namespace System.IO.Tests
[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);