Skip to content

Commit be864ab

Browse files
billwertadamsitnik
authored andcommitted
Perf_Directory cleanup fix (dotnet#405)
Fix cleanup in test initialization
1 parent e720dbf commit be864ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/benchmarks/micro/corefx/System.IO.FileSystem/Perf.Directory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public IEnumerable<object> RecursiveDepthData()
6767
var longPath = GetDirectoryPath(_testFile, (int)depth);
6868

6969
Directory.CreateDirectory(longPath);
70-
Directory.Delete(longPath);
70+
Directory.Delete(_testFile, recursive: true);
7171

7272
return true;
7373
}

0 commit comments

Comments
 (0)