Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 82f9d6e

Browse files
authored
Do not create a directory with a trailing space; it cannot be deleted by conventional methods. (#8587)
1 parent 60614db commit 82f9d6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Microsoft.DotNet.ShellShim.Tests/ShellShimMakerTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,9 @@ private static FileInfo MakeHelloWorldExecutableDll()
177177
{
178178
const string testAppName = "TestAppSimple";
179179
const string emptySpaceToTestSpaceInPath = " ";
180+
const string directoryNamePostFix = "Test";
180181
TestAssetInstance testInstance = TestAssets.Get(testAppName)
181-
.CreateInstance(testAppName + emptySpaceToTestSpaceInPath)
182+
.CreateInstance(testAppName + emptySpaceToTestSpaceInPath + directoryNamePostFix)
182183
.UseCurrentRuntimeFrameworkVersion()
183184
.WithRestoreFiles()
184185
.WithBuildFiles();

0 commit comments

Comments
 (0)