зеркало из https://github.com/mono/corefx.git
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:
Родитель
dbfa00cdb2
Коммит
e39bdd0ac8
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче