From 82f9d6e530014be3521d2f6202ae9e6c38d9d1ff Mon Sep 17 00:00:00 2001 From: John Beisner Date: Fri, 9 Feb 2018 17:17:36 -0800 Subject: [PATCH] Do not create a directory with a trailing space; it cannot be deleted by conventional methods. (#8587) --- test/Microsoft.DotNet.ShellShim.Tests/ShellShimMakerTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Microsoft.DotNet.ShellShim.Tests/ShellShimMakerTests.cs b/test/Microsoft.DotNet.ShellShim.Tests/ShellShimMakerTests.cs index fb6ea25e8..702bace71 100644 --- a/test/Microsoft.DotNet.ShellShim.Tests/ShellShimMakerTests.cs +++ b/test/Microsoft.DotNet.ShellShim.Tests/ShellShimMakerTests.cs @@ -177,8 +177,9 @@ namespace Microsoft.DotNet.ShellShim.Tests { const string testAppName = "TestAppSimple"; const string emptySpaceToTestSpaceInPath = " "; + const string directoryNamePostFix = "Test"; TestAssetInstance testInstance = TestAssets.Get(testAppName) - .CreateInstance(testAppName + emptySpaceToTestSpaceInPath) + .CreateInstance(testAppName + emptySpaceToTestSpaceInPath + directoryNamePostFix) .UseCurrentRuntimeFrameworkVersion() .WithRestoreFiles() .WithBuildFiles();