8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81d1490 commit 7cd4c55Copy full SHA for 7cd4c55
LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj
@@ -37,7 +37,7 @@
37
<DebugType>full</DebugType>
38
<Optimize>false</Optimize>
39
<OutputPath>bin\Leaks\</OutputPath>
40
- <DefineConstants>TRACE;DEBUG;NET35</DefineConstants>
+ <DefineConstants>TRACE;DEBUG;NET35;LEAKS</DefineConstants>
41
<ErrorReport>prompt</ErrorReport>
42
<WarningLevel>4</WarningLevel>
43
<DocumentationFile />
LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs
@@ -93,6 +93,10 @@ public void Register(string directoryPath)
93
94
public void Dispose()
95
{
96
+#if LEAKS
97
+ GC.Collect();
98
+#endif
99
+
100
foreach (string directory in directories)
101
102
DirectoryHelper.DeleteDirectory(directory);
0 commit comments