Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2022-09-28 12:18:20 +0300
committerGitHub <noreply@github.com>2022-09-28 12:18:20 +0300
commit68593dd718390853b4c74dc1d79906390aaf1589 (patch)
tree70ac0e76701e9442147bcfe584d3f7efcbaace41 /src/libraries
parentcdb6e1d5f9075214c8a58ca75d5314b5dc64daed (diff)
[wasm] Run System.Runtime tests in a deterministic order to work around https://github.com/dotnet/runtime/issues/74302. (#76287)
Diffstat (limited to 'src/libraries')
-rw-r--r--src/libraries/System.Runtime/tests/System.Runtime.Tests.csproj6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libraries/System.Runtime/tests/System.Runtime.Tests.csproj b/src/libraries/System.Runtime/tests/System.Runtime.Tests.csproj
index 91d560c81a8..340550dd759 100644
--- a/src/libraries/System.Runtime/tests/System.Runtime.Tests.csproj
+++ b/src/libraries/System.Runtime/tests/System.Runtime.Tests.csproj
@@ -16,6 +16,12 @@
<WithoutCategories Condition="'$(EnableAdditionalTimezoneChecks)' != 'true'">$(WithoutCategories);AdditionalTimezoneChecks</WithoutCategories>
</PropertyGroup>
+ <PropertyGroup Condition="'$(TargetOS)' == 'Browser'">
+ <!-- Workaround for https://github.com/dotnet/runtime/issues/74302 -->
+ <XUnitUseRandomizedTestOrderer>true</XUnitUseRandomizedTestOrderer>
+ <WasmXHarnessMonoArgs>--setenv=XUNIT_RANDOM_ORDER_SEED=1</WasmXHarnessMonoArgs>
+ </PropertyGroup>
+
<ItemGroup>
<RdXmlFile Include="default.rd.xml" />
</ItemGroup>