public static void RunMonoProcess(Process process, string name, string resultingFile) { MonoProcessRunner monoProcessRunner = new MonoProcessRunner(); bool flag = monoProcessRunner.Run(process); if (process.ExitCode != 0 || !File.Exists(resultingFile)) { string message = "Failed " + name + ": " + MonoProcessUtility.ProcessToString(process) + " result file exists: " + (object) File.Exists(resultingFile) + ". Timed out: " + (object) !flag + "\n\n" + "stdout:\n" + (object) monoProcessRunner.Output + "\n" + "stderr:\n" + (object) monoProcessRunner.Error + "\n"; Console.WriteLine(message); throw new UnityException(message); } }
public static void RunMonoProcess(Process process, string name, string resultingFile) { MonoProcessRunner monoProcessRunner = new MonoProcessRunner(); bool flag = monoProcessRunner.Run(process); if (process.ExitCode != 0 || !File.Exists(resultingFile)) { string message = "Failed " + name + ": " + MonoProcessUtility.ProcessToString(process) + " result file exists: " + (object)File.Exists(resultingFile) + ". Timed out: " + (object)!flag + "\n\n" + "stdout:\n" + (object)monoProcessRunner.Output + "\n" + "stderr:\n" + (object)monoProcessRunner.Error + "\n"; Console.WriteLine(message); throw new UnityException(message); } }
public static void RunMonoProcess(Process process, string name, string resultingFile) { MonoProcessRunner runner = new MonoProcessRunner(); bool flag = runner.Run(process); if ((process.ExitCode != 0) || !File.Exists(resultingFile)) { string str2 = string.Concat(new object[] { "Failed ", name, ": ", ProcessToString(process), " result file exists: ", File.Exists(resultingFile), ". Timed out: ", !flag }) + "\n\n"; object[] objArray2 = new object[] { str2, "stdout:\n", runner.Output, "\n" }; str2 = string.Concat(objArray2); object[] objArray3 = new object[] { str2, "stderr:\n", runner.Error, "\n" }; string str = string.Concat(objArray3); Console.WriteLine(str); throw new UnityException(str); } }
public static void RunMonoProcess(Process process, string name, string resultingFile) { MonoProcessRunner runner = new MonoProcessRunner(); bool exitOK = runner.Run(process); if (process.ExitCode != 0 || !File.Exists(resultingFile)) { string detailedMessage = "Failed " + name + ": " + ProcessToString(process) + " result file exists: " + File.Exists(resultingFile) + ". Timed out: " + !exitOK; detailedMessage += "\n\n"; detailedMessage += "stdout:\n" + runner.Output + "\n"; detailedMessage += "stderr:\n" + runner.Error + "\n"; System.Console.WriteLine(detailedMessage); throw new UnityException(detailedMessage); /// ;; TODO add micromscorlib warning } }
public static void RunMonoProcess(Process process, string name, string resultingFile) { MonoProcessRunner monoProcessRunner = new MonoProcessRunner(); bool flag = monoProcessRunner.Run(process); if (process.ExitCode != 0 || !File.Exists(resultingFile)) { string text = string.Concat(new object[] { "Failed ", name, ": ", MonoProcessUtility.ProcessToString(process), " result file exists: ", File.Exists(resultingFile), ". Timed out: ", !flag }); text += "\n\n"; string text2 = text; text = string.Concat(new object[] { text2, "stdout:\n", monoProcessRunner.Output, "\n" }); text2 = text; text = string.Concat(new object[] { text2, "stderr:\n", monoProcessRunner.Error, "\n" }); Console.WriteLine(text); throw new UnityException(text); } }