Skip to content

Commit a8b2f88

Browse files
committed
Disable TFM-parallel test runs; mark GC test as explicit
Set TestTfmsInParallel to false to serialize test runs per project, reducing resource usage in .NET 9+ SDKs. Marked a GC memory release test as explicit so it only runs when explicitly requested, preventing it from running by default.
1 parent 83124f9 commit a8b2f88

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Source/Tst/Directory.Build.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
-->
66
<PropertyGroup Condition="'$(IsTestProject)' == 'true'">
77
<RunSettingsFilePath>$(MSBuildThisFileDirectory)KZDev.PerfUtils.tests.runsettings</RunSettingsFilePath>
8+
<!-- .NET 9+ SDK runs each TFM in parallel by default; serialize per project for fewer hosts. -->
9+
<TestTfmsInParallel>false</TestTfmsInParallel>
810
</PropertyGroup>
911
</Project>

Source/Tst/KZDev.PerfUtils.Memory.Heap.Sequential.UnitTests/UsingMemoryStreamSlimReleaseBuffers.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public UsingMemoryStreamSlimReleaseBuffers (ITestOutputHelper xUnitTestOutputHel
4141
/// to using unmanaged memory, so this test is contained in the heap specific test
4242
/// project.
4343
/// </remarks>
44-
[Fact]
44+
[Fact(Explicit = true)]
45+
[Trait(TestConstants.TestTrait.TestMode, TestConstants.TestMode.Explicit)]
4546
public void UsingMemoryStreamSlimReleaseBuffers_CopyFullToStream_SettingReleaseMemoryProperlyReleasesMemory ()
4647
{
4748
int[] testDataSizes = GenerateTestDataSizes(1000, 0xF_FFFF).ToArray();

0 commit comments

Comments
 (0)