Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[Dev10_630880.cmd_9588]
-RelativePath=reflection\regression\dev10bugs\Dev10_630880\Dev10_630880.cmd
-WorkingDir=reflection\regression\dev10bugs\Dev10_630880
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[box-unbox006.cmd_9590]
RelativePath=JIT\jit64\valuetypes\nullable\box-unbox\box-unbox\box-unbox006\box-unbox006.cmd
WorkingDir=JIT\jit64\valuetypes\nullable\box-unbox\box-unbox\box-unbox006
Categories=Pri1;RT;EXPECTED_PASS
HostStyle=0
-[Dev10_630880.cmd_9793]
-RelativePath=reflection\regression\dev10bugs\Dev10_630880\Dev10_630880.cmd
-WorkingDir=reflection\regression\dev10bugs\Dev10_630880
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=Pri1;RT;EXPECTED_PASS
-HostStyle=0
-
[test.cmd_9794]
RelativePath=Regressions\assemblyref\test\test.cmd
WorkingDir=Regressions\assemblyref\test
<ExcludeList Include="$(XunitTestBinBase)/JIT/Regression/JitBlue/GitHub_11408/GitHub_11408/*">
<Issue>11408</Issue>
</ExcludeList>
- <ExcludeList Include="$(XunitTestBinBase)/reflection/regression/dev10bugs/Dev10_630880/*">
- <Issue>21173</Issue>
- </ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/baseservices/exceptions/StackTracePreserve/StackTracePreserveTests/*">
<Issue>20322</Issue>
</ExcludeList>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <CLRTestKind>BuildAndRun</CLRTestKind>
- <CLRTestPriority>1</CLRTestPriority>
- </PropertyGroup>
- <!-- Default configurations to help VS understand the configurations -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <ItemGroup>
- <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
- <Visible>False</Visible>
- </CodeAnalysisDependentAssemblyPaths>
- </ItemGroup>
- <ItemGroup>
- <!-- Add Compile Object Here -->
- <Compile Include="dev10_630880.cs" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
- </ItemGroup>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
- <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
- </PropertyGroup>
-</Project>
\ No newline at end of file
+++ /dev/null
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.Runtime.CompilerServices;
-using System.Security;
-
-/* Regression case for Dev10 #630880 - SL4: User Breaking Change: Users are not able to run critical class constructors in platform assembles */
-
-public class Dev10_630880
-{
- public static int Main()
- {
- int failures = 0;
-
- Console.WriteLine("Getting type of System.AppDomainManager.");
- Type t = Type.GetType("System.AppDomainManager");
-
- Console.WriteLine("Getting type handle of System.AppDomainManager type.");
- RuntimeTypeHandle h = t.TypeHandle;
-
- Console.WriteLine("Calling RuntimeHelpers.RunClassConstructor with type handle of System.AppDomainManager type.");
- try
- {
- // In V2, this throws TypeLoadException.
- // In V4, this shouldn't throw any exception
- RuntimeHelpers.RunClassConstructor(h);
-
- Console.WriteLine("PASS> No exception is thrown.");
- }
- catch (Exception e)
- {
- failures++;
- Console.WriteLine("FAIL> Unexpected {0}!", e.GetType());
- Console.WriteLine("Please revisit Dev10 #630880.");
- Console.WriteLine();
- Console.WriteLine(e);
- }
-
- Console.WriteLine();
- Console.WriteLine("TEST {0}", failures == 0 ? "PASSED." : "FAILED!");
- return 100 + failures;
- }
-}