diff --git a/eng/liveBuilds.targets b/eng/liveBuilds.targets
index e602f23f060464..d3b3b7fcfac606 100644
--- a/eng/liveBuilds.targets
+++ b/eng/liveBuilds.targets
@@ -244,6 +244,11 @@
$(LibrariesSharedFrameworkDir)*.js;
$(LibrariesSharedFrameworkDir)*.a;
$(LibrariesSharedFrameworkDir)*.dat;
+ "
+ IsNative="true" />
+
+
+
+
+
diff --git a/src/tests/CoreMangLib/system/span/RefStructWithSpan.cs b/src/tests/CoreMangLib/system/span/RefStructWithSpan.cs
index b0b0487ca8d8dc..b246cd8342f0f7 100644
--- a/src/tests/CoreMangLib/system/span/RefStructWithSpan.cs
+++ b/src/tests/CoreMangLib/system/span/RefStructWithSpan.cs
@@ -5,6 +5,7 @@
using System.Collections.Generic;
using System.Threading;
using Xunit;
+using TestLibrary;
ref struct MyStruct
{
@@ -70,7 +71,7 @@ static void Churn()
public static int[][] g = new int[10000][];
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsMultithreadingSupported))]
[OuterLoop]
[SkipOnCoreClr("Incompatible with GC stress", RuntimeTestModes.AnyGCStress)]
public static int TestEntryPoint()
diff --git a/src/tests/JIT/Directed/tailcall/mutual_recursion.fs b/src/tests/JIT/Directed/tailcall/mutual_recursion.fs
index ac6a167c1167a5..43147f27d17086 100644
--- a/src/tests/JIT/Directed/tailcall/mutual_recursion.fs
+++ b/src/tests/JIT/Directed/tailcall/mutual_recursion.fs
@@ -556,6 +556,7 @@ type Driver() =
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
+[, [| "IsBrowser" |])>]
[]
[]
[, [| "IsNotNativeAot" |])>]
diff --git a/src/tests/JIT/Methodical/Methodical_d2.csproj b/src/tests/JIT/Methodical/Methodical_d2.csproj
index 15ff459dbeeeaf..f648d26c8813ec 100644
--- a/src/tests/JIT/Methodical/Methodical_d2.csproj
+++ b/src/tests/JIT/Methodical/Methodical_d2.csproj
@@ -123,6 +123,7 @@
+
diff --git a/src/tests/JIT/Methodical/VT/callconv/aa.il b/src/tests/JIT/Methodical/VT/callconv/aa.il
index 3de47f3a67f090..f0d87cabaf97b2 100644
--- a/src/tests/JIT/Methodical/VT/callconv/aa.il
+++ b/src/tests/JIT/Methodical/VT/callconv/aa.il
@@ -16,6 +16,8 @@
}
.assembly extern xunit.core {}
+.assembly extern Microsoft.DotNet.XUnitExtensions { .publickeytoken = (31 BF 38 56 AD 36 4E 35 ) }
+.assembly extern TestLibrary { .ver 0:0:0:0 }
// MVID: {CF1D567F-C985-45B8-8028-219BDC43D791}
.namespace JitTest_aa_il
{
@@ -252,6 +254,7 @@
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
+ .custom instance void [Microsoft.DotNet.XUnitExtensions]Xunit.ActiveIssueAttribute::.ctor(string, class [mscorlib]System.Type, string[]) = {string('https://github.com/dotnet/runtime/issues/127426') type([TestLibrary]TestLibrary.PlatformDetection) string[1] ('IsBrowser') }
.entrypoint
// Code size 227 (0xe3)
.maxstack 4
diff --git a/src/tests/JIT/Methodical/VT/callconv/call.cs b/src/tests/JIT/Methodical/VT/callconv/call.cs
index 1bf32a8bdb5ba1..6a0d87b8d8fecc 100644
--- a/src/tests/JIT/Methodical/VT/callconv/call.cs
+++ b/src/tests/JIT/Methodical/VT/callconv/call.cs
@@ -3,6 +3,7 @@
using System;
using Xunit;
+using TestLibrary;
namespace JitTest_call_cs
{
@@ -63,6 +64,7 @@ private static void TryInterface(ISomething smth)
}
[Fact]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/127426", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser))]
[OuterLoop]
public static int TestEntryPoint()
{
diff --git a/src/tests/JIT/Methodical/VT/callconv/calli.il b/src/tests/JIT/Methodical/VT/callconv/calli.il
index 5bf0ffa415b3d7..9f2f60504e3e94 100644
--- a/src/tests/JIT/Methodical/VT/callconv/calli.il
+++ b/src/tests/JIT/Methodical/VT/callconv/calli.il
@@ -16,6 +16,8 @@
{
}
.assembly extern xunit.core {}
+.assembly extern Microsoft.DotNet.XUnitExtensions { .publickeytoken = (31 BF 38 56 AD 36 4E 35 ) }
+.assembly extern TestLibrary { .ver 0:0:0:0 }
// MVID: {CF1D567F-C985-45B8-8028-219BDC43D791}
.namespace JitTest_calli_il
{
@@ -262,6 +264,7 @@
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
+ .custom instance void [Microsoft.DotNet.XUnitExtensions]Xunit.ActiveIssueAttribute::.ctor(string, class [mscorlib]System.Type, string[]) = {string('https://github.com/dotnet/runtime/issues/127426') type([TestLibrary]TestLibrary.PlatformDetection) string[1] ('IsBrowser') }
.entrypoint
// Code size 227 (0xe3)
.maxstack 8
diff --git a/src/tests/JIT/Methodical/VT/callconv/dd.il b/src/tests/JIT/Methodical/VT/callconv/dd.il
index 55546eef627786..635cd989b3a10a 100644
--- a/src/tests/JIT/Methodical/VT/callconv/dd.il
+++ b/src/tests/JIT/Methodical/VT/callconv/dd.il
@@ -16,6 +16,8 @@
{
}
.assembly extern xunit.core {}
+.assembly extern Microsoft.DotNet.XUnitExtensions { .publickeytoken = (31 BF 38 56 AD 36 4E 35 ) }
+.assembly extern TestLibrary { .ver 0:0:0:0 }
// MVID: {CF1D567F-C985-45B8-8028-219BDC43D791}
.namespace JitTest_dd_il
{
@@ -252,6 +254,7 @@
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
+ .custom instance void [Microsoft.DotNet.XUnitExtensions]Xunit.ActiveIssueAttribute::.ctor(string, class [mscorlib]System.Type, string[]) = {string('https://github.com/dotnet/runtime/issues/127426') type([TestLibrary]TestLibrary.PlatformDetection) string[1] ('IsBrowser') }
.entrypoint
// Code size 227 (0xe3)
.maxstack 4
diff --git a/src/tests/JIT/Methodical/VT/callconv/ee.il b/src/tests/JIT/Methodical/VT/callconv/ee.il
index 896cd559d60ec7..9ac841ba82ffb2 100644
--- a/src/tests/JIT/Methodical/VT/callconv/ee.il
+++ b/src/tests/JIT/Methodical/VT/callconv/ee.il
@@ -16,6 +16,8 @@
{
}
.assembly extern xunit.core {}
+.assembly extern Microsoft.DotNet.XUnitExtensions { .publickeytoken = (31 BF 38 56 AD 36 4E 35 ) }
+.assembly extern TestLibrary { .ver 0:0:0:0 }
// MVID: {CF1D567F-C985-45B8-8028-219BDC43D791}
.namespace JitTest_ee_il
{
@@ -252,6 +254,7 @@
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
+ .custom instance void [Microsoft.DotNet.XUnitExtensions]Xunit.ActiveIssueAttribute::.ctor(string, class [mscorlib]System.Type, string[]) = {string('https://github.com/dotnet/runtime/issues/127426') type([TestLibrary]TestLibrary.PlatformDetection) string[1] ('IsBrowser') }
.entrypoint
// Code size 227 (0xe3)
.maxstack 4
diff --git a/src/tests/JIT/jit64/opt/cse/VolatileTest.csproj b/src/tests/JIT/jit64/opt/cse/VolatileTest.csproj
index ee944dcc88fe5d..5f93169bf75512 100644
--- a/src/tests/JIT/jit64/opt/cse/VolatileTest.csproj
+++ b/src/tests/JIT/jit64/opt/cse/VolatileTest.csproj
@@ -10,4 +10,7 @@
+
+
+
diff --git a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_add.cs b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_add.cs
index 73f5279573bb0f..3cafc61cc90c3e 100644
--- a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_add.cs
+++ b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_add.cs
@@ -7,12 +7,13 @@
using System.Threading;
using System.Text;
using Xunit;
+using TestLibrary;
namespace JIT.jit64.opt.cse.VolatileTest_op_add;
public class Program
{
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsMultithreadingSupported))]
[OuterLoop]
[SkipOnCoreClr("", RuntimeTestModes.AnyGCStress)]
public static int TestEntryPoint()
diff --git a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_and.cs b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_and.cs
index ebfdd935879d6d..8b4fd6b38590e9 100644
--- a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_and.cs
+++ b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_and.cs
@@ -7,12 +7,13 @@
using System.Threading;
using System.Text;
using Xunit;
+using TestLibrary;
namespace JIT.jit64.opt.cse.VolatileTest_op_and;
public class Program
{
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsMultithreadingSupported))]
[OuterLoop]
[SkipOnCoreClr("", RuntimeTestModes.AnyGCStress)]
public static int TestEntryPoint()
diff --git a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_div.cs b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_div.cs
index cadf19489646ec..7fb376ef23290c 100644
--- a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_div.cs
+++ b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_div.cs
@@ -7,12 +7,13 @@
using System.Threading;
using System.Text;
using Xunit;
+using TestLibrary;
namespace JIT.jit64.opt.cse.VolatileTest_op_div;
public class Program
{
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsMultithreadingSupported))]
[OuterLoop]
[SkipOnCoreClr("", RuntimeTestModes.AnyGCStress)]
public static int TestEntryPoint()
diff --git a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_mod.cs b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_mod.cs
index 8555444f69dba7..aa9592db2a8683 100644
--- a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_mod.cs
+++ b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_mod.cs
@@ -7,12 +7,13 @@
using System.Threading;
using System.Text;
using Xunit;
+using TestLibrary;
namespace JIT.jit64.opt.cse.VolatileTest_op_mod;
public class Program
{
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsMultithreadingSupported))]
[OuterLoop]
[SkipOnCoreClr("", RuntimeTestModes.AnyGCStress)]
public static int TestEntryPoint()
diff --git a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_mul.cs b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_mul.cs
index 4b8d676a34cdf2..126db8e72e9bc8 100644
--- a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_mul.cs
+++ b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_mul.cs
@@ -7,12 +7,13 @@
using System.Threading;
using System.Text;
using Xunit;
+using TestLibrary;
namespace JIT.jit64.opt.cse.VolatileTest_op_mul;
public class Program
{
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsMultithreadingSupported))]
[OuterLoop]
[SkipOnCoreClr("", RuntimeTestModes.AnyGCStress)]
public static int TestEntryPoint()
diff --git a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_or.cs b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_or.cs
index 85da5b3ed45a31..5769792132dfa2 100644
--- a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_or.cs
+++ b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_or.cs
@@ -7,12 +7,13 @@
using System.Threading;
using System.Text;
using Xunit;
+using TestLibrary;
namespace JIT.jit64.opt.cse.VolatileTest_op_or;
public class Program
{
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsMultithreadingSupported))]
[OuterLoop]
[SkipOnCoreClr("", RuntimeTestModes.AnyGCStress)]
public static int TestEntryPoint()
diff --git a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_shr.cs b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_shr.cs
index 1ae8b3cd316977..9e18e785478075 100644
--- a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_shr.cs
+++ b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_shr.cs
@@ -7,12 +7,13 @@
using System.Threading;
using System.Text;
using Xunit;
+using TestLibrary;
namespace JIT.jit64.opt.cse.VolatileTest_op_shr;
public class Program
{
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsMultithreadingSupported))]
[OuterLoop]
[SkipOnCoreClr("", RuntimeTestModes.AnyGCStress)]
public static int TestEntryPoint()
diff --git a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_sub.cs b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_sub.cs
index 12d261d746127f..15591b34e7609a 100644
--- a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_sub.cs
+++ b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_sub.cs
@@ -7,12 +7,13 @@
using System.Threading;
using System.Text;
using Xunit;
+using TestLibrary;
namespace JIT.jit64.opt.cse.VolatileTest_op_sub;
public class Program
{
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsMultithreadingSupported))]
[OuterLoop]
[SkipOnCoreClr("", RuntimeTestModes.AnyGCStress)]
public static int TestEntryPoint()
diff --git a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_xor.cs b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_xor.cs
index 3d95896e8ac122..9a238c6db69457 100644
--- a/src/tests/JIT/jit64/opt/cse/VolatileTest_op_xor.cs
+++ b/src/tests/JIT/jit64/opt/cse/VolatileTest_op_xor.cs
@@ -7,12 +7,13 @@
using System.Threading;
using System.Text;
using Xunit;
+using TestLibrary;
namespace JIT.jit64.opt.cse.VolatileTest_op_xor;
public class Program
{
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsMultithreadingSupported))]
[OuterLoop]
[SkipOnCoreClr("", RuntimeTestModes.AnyGCStress)]
public static int TestEntryPoint()
diff --git a/src/tests/Loader/classloader/MethodImpl/Desktop/self_override5.il b/src/tests/Loader/classloader/MethodImpl/Desktop/self_override5.il
index 6a4f305a4e34dc..d9fb8328aa0886 100644
--- a/src/tests/Loader/classloader/MethodImpl/Desktop/self_override5.il
+++ b/src/tests/Loader/classloader/MethodImpl/Desktop/self_override5.il
@@ -79,6 +79,7 @@
01 00 00 00
)
.custom instance void [Microsoft.DotNet.XUnitExtensions]Xunit.ActiveIssueAttribute::.ctor(string, class [mscorlib]System.Type, string[]) = {string('Tests that expect TypeLoadException') type([TestLibrary]TestLibrary.Utilities) string[1] ('IsNativeAot') }
+ .custom instance void [Microsoft.DotNet.XUnitExtensions]Xunit.ActiveIssueAttribute::.ctor(string, class [mscorlib]System.Type, string[]) = {string('https://github.com/dotnet/runtime/issues/120708') type([TestLibrary]TestLibrary.PlatformDetection) string[1] ('IsBrowser') }
.entrypoint
.locals init (bool V_0,