Skip to content

Commit

Permalink
Fix System.Data.SqlClient tests on Alpine (dotnet#31850)
Browse files Browse the repository at this point in the history
System.Data.SqlClient package reference in tests is restoring wrong flavor of System.Data.SqlClient in some cases (Alpine, Mono). Switch back to copying System.Data.SqlClient to testhost.
  • Loading branch information
jkotas authored Feb 6, 2020
1 parent 04e3169 commit 4b4d741
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,4 @@
<Link>Common\System\Runtime\Serialization\Formatters\BinaryFormatterHelpers.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Data.SqlClient" Version="$(SystemDataSqlClientVersion)" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,4 @@
<ItemGroup Condition="'$(TargetsNetCoreApp)' == 'true'">
<Reference Include="System.Text.Json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Data.SqlClient" Version="$(SystemDataSqlClientVersion)" />
</ItemGroup>
</Project>
9 changes: 9 additions & 0 deletions src/libraries/restore/runtime/runtime.depproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
<FileToExclude Include="apphost" />
</ItemGroup>

<ItemGroup>
<!-- System.Data.SqlClient is not live-built anymore -->
<PackageReference Include="System.Data.SqlClient" Version="$(SystemDataSqlClientVersion)" />
<!-- Exclude live-built dependencies -->
<FileToExclude Include="Microsoft.Win32.Registry" />
<FileToExclude Include="System.Security.AccessControl" />
<FileToExclude Include="System.Security.Principal.Windows" />
</ItemGroup>

<ItemGroup>
<PackageReference Condition="'$(TargetFramework)' == 'netcoreapp3.0'" Include="Microsoft.Private.Corefx.NETCoreApp" Version="4.6.0-rc2.19462.14" />
</ItemGroup>
Expand Down
9 changes: 0 additions & 9 deletions src/mono/netcore/CoreFX.issues.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -930,12 +930,3 @@
-nomethod System.Security.Cryptography.Encoding.Tests.OidTests.LookupOidByFriendlyName_Ctor

-nomethod System.Tests.StringComparerTests.CreateCultureOptions_InvalidArguments_Throws

####################################################################
## System.Data.SqlClient
####################################################################

# The tests are loading wrong System.Data.SqlClient - https://github.com/dotnet/runtime/issues/31799
-nomethod System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests.RoundtripManyObjectsInOneStream
-nomethod System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests.ValidateBasicObjectsRoundtrip
-noclass System.Data.Common.DbProviderFactoriesTests

0 comments on commit 4b4d741

Please sign in to comment.