提交 f441536b 编写于 作者: J Jason Malinowski

Fix attaching ProcDump to instances when we launch xunit

We were launching xunit by ShellExecute'ing not the procdump executable,
but rather the folder that contained the procdump executable. That
really doesn't work well, it turns out.
上级 327a81a1
......@@ -156,7 +156,7 @@ private static void WriteLogFile(Options options)
/// </summary>
private static async Task HandleTimeout(Options options, CancellationToken cancellationToken)
{
var procDumpFilePath = Path.Combine(options.ProcDumpPath, "procdump.exe");
var procDumpFilePath = GetProcDumpInfo(options).Value.ProcDumpFilePath;
async Task DumpProcess(Process targetProcess, string dumpFilePath)
{
......@@ -217,7 +217,7 @@ async Task DumpProcess(Process targetProcess, string dumpFilePath)
var dumpDir = options.LogFilePath != null
? Path.GetDirectoryName(options.LogFilePath)
: Directory.GetCurrentDirectory();
return new ProcDumpInfo(options.ProcDumpPath, dumpDir);
return new ProcDumpInfo(Path.Combine(options.ProcDumpPath, "procdump.exe"), dumpDir);
}
return null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册