Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -621,7 +621,8 @@
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<ItemGroup Condition="(('$(TargetOS)' != 'tvOS' and '$(TargetOS)' != 'iOS') or '$(RunDisablediOSTests)' == 'true') and
('$(TestNativeAot)' != 'true' or '$(RunDisabledNativeAotTests)' == 'true')" >
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be better to put [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))] on the individual test classes in these files. It's more consistent with how we do things and more futureproof.

<Compile Include="Xslt\XslCompiledTransformApi\Errata4.cs" />
<Compile Include="Xslt\XslCompiledTransformApi\OutputSettings.cs" />
<Compile Include="Xslt\XslCompiledTransformApi\TempFiles.cs" />
Expand All @@ -632,6 +633,9 @@
<Compile Include="Xslt\XslCompiledTransformApi\XslTransformMultith.cs" />
<Compile Include="Xslt\XslCompiledTransformApi\XsltSettings.cs" />
<Compile Include="Xslt\XslCompiledTransformApi\XslCompiledTransform.cs" />
</ItemGroup>

<ItemGroup>
<Compile Include="Xslt\XslTransformApi\CXslTArgumentList.cs" />
<Compile Include="Xslt\XslTransformApi\CXsltArgumentListMultith.cs" />
<Compile Include="Xslt\XslTransformApi\CXslTransform.cs" />
Expand Down
8 changes: 0 additions & 8 deletions src/libraries/tests.proj
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@
<ItemGroup Condition="'$(TargetOS)' == 'iOS' and '$(RunDisablediOSTests)' != 'true'">
<ProjectExclusions Include="$(MSBuildThisFileDirectory)*\tests\**\*.Tests.csproj" />

<!-- Ref.Emit in XSLCompiledTransform -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Private.Xml\tests\Xslt\XslCompiledTransformApi\System.Xml.Xsl.XslCompiledTransformApi.Tests.csproj" />

<!-- Functional tests on devices have problems with return codes from mlaunch -->
<ProjectExclusions Include="$(RepoRoot)\src\tests\FunctionalTests\$(TargetOS)\Device\**\*.Test.csproj" />
</ItemGroup>
Expand All @@ -258,8 +255,6 @@
</ItemGroup>

<ItemGroup Condition="'$(TargetOS)' == 'tvOS' and '$(RunDisablediOSTests)' != 'true'">
<!-- Ref.Emit in XSLCompiledTransform -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Private.Xml\tests\Xslt\XslCompiledTransformApi\System.Xml.Xsl.XslCompiledTransformApi.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Reflection\tests\System.Reflection.Emit.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Reflection.Emit.ILGeneration/tests/System.Reflection.Emit.ILGeneration.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Reflection.Emit.Lightweight/tests/System.Reflection.Emit.Lightweight.Tests.csproj" />
Expand Down Expand Up @@ -494,9 +489,6 @@
<!-- More than two thirds of tests failing due to ref emit -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)Microsoft.Extensions.DependencyInjection\tests\DI.Tests\Microsoft.Extensions.DependencyInjection.Tests.csproj" />

<!-- Xslt is ref.emit -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Private.Xml\tests\Xslt\XslCompiledTransformApi\System.Xml.Xsl.XslCompiledTransformApi.Tests.csproj" />

<!-- These are failing in localized runs due to satellite assembly reflection in the test. Work fine otherwise. -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Private.Xml\tests\XmlSchema\XmlSchemaValidatorApi\System.Xml.XmlSchema.XmlSchemaValidatorApi.Tests.csproj"
Condition="'$(TargetOS)' == 'windows'"/>
Expand Down