Browse Source

avoid exceptions in PrepareRemoteExecutor()

pull/1089/head
Anton Firszov 7 years ago
parent
commit
3e33bb3bb8
  1. 5
      tests/ImageSharp.Tests/TestUtilities/TestEnvironment.cs

5
tests/ImageSharp.Tests/TestUtilities/TestEnvironment.cs

@ -165,6 +165,9 @@ namespace SixLabors.ImageSharp.Tests
return; return;
} }
// Locate and run CorFlags.exe:
try
{
string windowsSdksDir = Path.Combine(Environment.GetEnvironmentVariable("PROGRAMFILES(x86)"), string windowsSdksDir = Path.Combine(Environment.GetEnvironmentVariable("PROGRAMFILES(x86)"),
"Microsoft SDKs", "Windows"); "Microsoft SDKs", "Windows");
@ -183,8 +186,6 @@ namespace SixLabors.ImageSharp.Tests
RedirectStandardError = true RedirectStandardError = true
}; };
try
{
using var proc = Process.Start(si); using var proc = Process.Start(si);
proc.WaitForExit(); proc.WaitForExit();
string standardOutput = proc.StandardOutput.ReadToEnd(); string standardOutput = proc.StandardOutput.ReadToEnd();

Loading…
Cancel
Save