diff --git a/src/libraries/System.IO.FileSystem.Watcher/tests/Utility/FileSystemWatcherTest.cs b/src/libraries/System.IO.FileSystem.Watcher/tests/Utility/FileSystemWatcherTest.cs index d6a20645558..7bc7fec4c1a 100644 --- a/src/libraries/System.IO.FileSystem.Watcher/tests/Utility/FileSystemWatcherTest.cs +++ b/src/libraries/System.IO.FileSystem.Watcher/tests/Utility/FileSystemWatcherTest.cs @@ -397,7 +397,7 @@ namespace System.IO.Tests } else { - symLinkProcess.StartInfo.FileName = "ln"; + symLinkProcess.StartInfo.FileName = "/bin/ln"; symLinkProcess.StartInfo.Arguments = string.Format("-s \"{0}\" \"{1}\"", Path.GetFullPath(targetPath), Path.GetFullPath(linkPath)); } symLinkProcess.StartInfo.RedirectStandardOutput = true; diff --git a/src/libraries/System.IO.FileSystem/tests/PortedCommon/ReparsePointUtilities.cs b/src/libraries/System.IO.FileSystem/tests/PortedCommon/ReparsePointUtilities.cs index 1b2ea2ef8d2..3bb9b5c84b4 100644 --- a/src/libraries/System.IO.FileSystem/tests/PortedCommon/ReparsePointUtilities.cs +++ b/src/libraries/System.IO.FileSystem/tests/PortedCommon/ReparsePointUtilities.cs @@ -42,7 +42,7 @@ public static class MountHelper } else { - symLinkProcess.StartInfo.FileName = "ln"; + symLinkProcess.StartInfo.FileName = "/bin/ln"; symLinkProcess.StartInfo.Arguments = string.Format("-s \"{0}\" \"{1}\"", targetPath, linkPath); } symLinkProcess.StartInfo.RedirectStandardOutput = true;