提交 36f992f0 编写于 作者: T Ty Overby

Use better temp directory cleanup in tests

Closes #6233
上级 12a2f859
......@@ -21,10 +21,9 @@ public class EndToEndDeterminismTest: TestBase
/// <returns> An array of bytes that were read from the compiled DLL</returns>
private byte[] CompileAndGetBytes(string source, string additionalFlags, out string finalFlags)
{
var tempRoot = new TempRoot();
// Setup
var tempDir = tempRoot.CreateDirectory();
var tempDir = Temp.CreateDirectory();
var srcFile = tempDir.CreateFile("test.cs").WriteAllText(source).Path;
var outFile = srcFile.Replace("test.cs", "test.dll");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册