Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ public class RuntimeHelperTest
[Fact]
public static void TestEntryPoint()
{
const string asmName = "moduleCctor";
AssemblyLoadContext resolver0 = AssemblyLoadContext.GetLoadContext(Assembly.GetExecutingAssembly());
Assembly asm0 = resolver0.LoadFromAssemblyName(new AssemblyName("moduleCctor"));
Assembly asm0 = resolver0.LoadFromAssemblyName(new AssemblyName(asmName));
Module mod = asm0.ManifestModule;

RuntimeHelpers.RunModuleConstructor(mod.ModuleHandle);
var oType = asm0.GetType("IntHolder",true);
var oType = Type.GetType("IntHolder, " + asmName,true);
MethodInfo check = oType.GetMethod("Check");
MethodInfo assign = oType.GetMethod("Assign");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<RequiresProcessIsolation>true</RequiresProcessIsolation>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test uses Reflection.Emit -->
<NativeAotIncompatible>true</NativeAotIncompatible>
</PropertyGroup>
<ItemGroup>
<Compile Include="dynamicmethodliveness.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,19 @@ public void CreateAndThrow()
{
oomStack = oomStack.Substring(0, oomStack.IndexOf(':') - 1);
}
if (oomStack.IndexOf("+ 0x") != -1)
{
oomStack = oomStack.Substring(0, oomStack.IndexOf("+ 0x") - 1);
}

if (expectedStack.IndexOf(':') != -1)
{
expectedStack = expectedStack.Substring(0, expectedStack.IndexOf(':') - 1);
}
if (expectedStack.IndexOf("+ 0x") != -1)
{
expectedStack = expectedStack.Substring(0, expectedStack.IndexOf("+ 0x") - 1);
}

if (oomStack != expectedStack)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<RequiresProcessIsolation>true</RequiresProcessIsolation>
<!-- Temporarily disabled due to https://github.com/dotnet/runtime/issues/80356 -->
<GCStressIncompatible>true</GCStressIncompatible>
<!-- Test expects corerun -->
<NativeAotIncompatible>true</NativeAotIncompatible>
</PropertyGroup>
<ItemGroup>
<Compile Include="ParallelCrashTester.cs" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props, $(MSBuildThisFileDirectory)..))" />

<PropertyGroup>
<!-- ThreadPool.BindHandle doesn't work with the Windows threadpool: https://github.com/dotnet/runtimelab/issues/491 -->
<UseWindowsThreadPool>false</UseWindowsThreadPool>
</PropertyGroup>
</Project>
3 changes: 3 additions & 0 deletions src/tests/issues.targets
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,9 @@

<!-- NativeAOT specific -->
<ItemGroup Condition="'$(XunitTestBinBase)' != '' and '$(TestBuildMode)' == 'nativeaot' and '$(RuntimeFlavor)' == 'coreclr'">
<ExcludeList Include="$(XunitTestBinBase)/baseservices/threading/regressions/beta2/437017/**">
<Issue>https://github.com/dotnet/runtime/issues/102544</Issue>
</ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/JIT/Regression/JitBlue/devdiv_902271/DevDiv_902271/**">
<Issue>needs triage</Issue>
</ExcludeList>
Expand Down