Commit Graph
615 Commits
Author SHA1 Message Date
Atsushi Kanamori 93f45f4241 Drive System.Collections.Immutable.Test failures on ILC to 0. (dotnet/corefx#19926)
Commit migrated from https://github.com/dotnet/corefx/commit/86f08b4298b651bdf22dc427d8d4231a43a7ada1
2017-05-18 08:55:51 -07:00
Stephen Toub 3d2678df5d Merge pull request dotnet/corefx#19900 from AtsushiKan/bugs
CoreFx Tests: Add ActiveIssues for ILC

Commit migrated from https://github.com/dotnet/corefx/commit/86360a4f1a19634c3071754dbaa24069ba4f49aa
2017-05-17 16:11:36 -04:00
Atsushi Kanamori 0eaf427b57 CoreFx Tests: Add ActiveIssues for ILC
- Now that we have a per-framework ActiveIssueAttribute
  (and we have more than 1.5 people working on these tests on ILC),
  add ActiveIssues for those tests where we know the cause
  and don't anticipate a fix within a week.

- Now that ILC supports multidim arrays of rank 1,
  reenable all the tests that were disabled because of that.


Commit migrated from https://github.com/dotnet/corefx/commit/db7af8d51dc04072c3c188797d4bc05c223417fa
2017-05-17 11:24:40 -07:00
Eric St. John e02c675179 Increment versions post 2.0
Commit migrated from https://github.com/dotnet/corefx/commit/6c5f87319a4785499008c95b2ff5e7f13a413d22
2017-05-16 14:12:16 -07:00
Atsushi Kanamori 099eebfc5f Fix two more AoT failures in System.Collections.Immutable.Test.dll (dotnet/corefx#19043)
Commit migrated from https://github.com/dotnet/corefx/commit/cebef4950f85adcbad486f299158f34b6b3eaf0d
2017-04-27 06:59:27 -07:00
Atsushi Kanamori b0a40a4f6c Fix AoT failures in System.Collections.Immutable tests (dotnet/corefx#19014)
Most of it DebuggerAttribute tests.

One helper was using internal Reflection to its dirty
work - substituted another way to do its dirty work.

Commit migrated from https://github.com/dotnet/corefx/commit/60af73c41d3bae052fc083151a3c98cb9f2411c5
2017-04-27 03:47:32 -07:00
Atsushi Kanamori 46351bb21f Disable all the non-zero lower bound array failures in Collections tests. (dotnet/corefx#18737)
Commit migrated from https://github.com/dotnet/corefx/commit/495d3eac3d78d004a223faaf4f992cf9f1fc1112
2017-04-21 10:31:22 -07:00
Eric St. John 08a06887a3 Re-enable package validation and clean up package content
Commit migrated from https://github.com/dotnet/corefx/commit/72002dbb7e3e657adaeb002feca0399d9667a54b
2017-04-18 13:28:50 -07:00
Daniel Harvey 252cdc5e95 Bulk updates of tests for AssertExtensions (dotnet/corefx#18491)
Bulk update to AssertExtensions.Throws for AOT support. This doesn't disable Assert.Throws.

Commit migrated from https://github.com/dotnet/corefx/commit/b43b4df2e0e2182154bb0f425cb4a61bc1269828
2017-04-18 09:52:02 -07:00
Nate Barbettini acd42df56d Add TryAdd/Remove extension methods in CollectionExtensions (dotnet/corefx#18091)
* Add TryAdd and Remove to CollectionExtensions


Commit migrated from https://github.com/dotnet/corefx/commit/c8ed5b616c140494f8713a839ea4bc16dab47ef2
2017-04-16 15:56:26 -07:00
Wes Haggard 4185183e8c Updates how we define which key an assembly uses
Now instead of Use*Key a project can instead define the assembly key
in the project (genreally the common dir.pops for a project) using
the AssemblyKey property. The accepted values are Open, ECMA, MSFT,
Test.

This change allows for a repo to set the default key they want to use
for projects. In corefx we have switched the default to use the Open
key instead of the old BuildTools default of MSFT key.

As part of this update we are explicitly setting the AssemblyKey in
all the library projects (although it is really only necessary for
projects that aren't the default).

Also with this change we are updating all the new libraries that have
not yet shipped stable (compared to our 1.1 release) and making them
use the Open key. Which means that for prerelease dependencies there
might be some binary breaking changes to consume.

The following libraries ahven't shipped so there key is being
changed from MSFT to Open:
Microsoft.XmlSerializer.Generator
System.CodeDom
System.Configuration.ConfigurationManager
System.Data.Odbc
System.DirectoryServices
System.DirectoryServices.AccountManagement
System.DirectoryServices.Protocols
System.IO.Ports
System.Json
System.Memory
System.Net.HttpListener
System.Net.Mail
System.Net.ServicePoint
System.Net.WebClient
System.Net.WebProxy
System.Private.Xml
System.Private.Xml.Linq
System.Security.Cryptography.Xml
System.Security.Permissions
System.Transactions.Local
System.Web.HttpUtility


Commit migrated from https://github.com/dotnet/corefx/commit/ac09a797d09502ebab61f7167bb856846602e1e6
2017-04-10 12:51:50 -07:00
Rion Williams 1b159ddccc Replaced ContainsKey() Calls with TryAdd() Dictionary Calls (dotnet/corefx#17201)
* Replaced ContainsKey() Calls with TryAdd() Dictionary Calls (Where Applicable)

Replaced `ContainsKey()` method calls with the new `TryAdd()` method
where applicable.

* Reverted `TryAdd()` To Previous Approach

Reverted to earlier approach to avoid unnessary allocation of  a new
row.

* Cleaned Up `else-if` Usage with `TryAdd()`

Removed the `TryAdd()` call from within the conditional statements and
moved them to the body

* Added Extra Line for Readability / Coding Style

* Updated Non-Dictionary Test Cases To Use `TryAdd()`

Updated various unit tests to include the `TryAdd()` instead of the
previous `ContainsKey()` pattern. This focused primarily on test casts
that were not dictionary-related at all to help curb any potential
regression issues.

* Added `TryAdd()` Within Dictionary Performance Test

Replaced older `ContainsKey()` implementation with newer `TryAdd()`.

* Reverted PerfDictionary Test to `ContainsKey()` Usage

Changed test to earlier implementation in to make way for .NET Core
specific tests using newer API.

* Created Separate .NET Core Dictionary Performance Test

Copied the existing dictionary performance tests (from
`Perf.Dictionary.cs`) and used the newer `TryAdd()` calls; Adjusted the
projects test file only include these when targeting .NET Core.

* Created Separate .NET Core SQL Manual Test

Reverted previous usage of the newer `TryAdd()` method and created a
separate .NET Core specific file to to be conditionally included and
tested.

* Separated .NET Core ILPrinter Test

Reverted previous changes involving the `TryAdd()` method and created a
seperate file to test this functionality only for .NET Core.

* Created Seperate .NET Core Linq TreeManipulation Tests

Reverted previous changes to the normal tests and created a seperate
test targeting .NET Core with the newer `TryAdd()` usage.

* Created Seperate .NET Core xNodeBuilder Test

Reverted previous changes to the normal tests and created a seperate
test targeting .NET Core with the newer `TryAdd()` usage.

* Missed .NET Core Reference for InternalConnectionWrapper

* Applied Compilation Condition for InternalConnectionWrapper to Avoid Collisions

Applied Compilation Condition for InternalConnectionWrapper to Avoid
Collisions (i.e. either build for .NET Core or use the other one for
non-Core builds)

* Avoiding Another Build Collision with .NET Core Functionality

Added a .NET Core compilation constraint for the .NET Core specific
ILPrinter class to avoid issues when building (i.e. only build .NET Core
or non-Core).

* Fixed Yet Another Potential Build Collision with .NET Core

Added a .NET Core compilation constraint for the .NET Core specific
Performance Dictionary testing class to avoid issues when building (i.e.
only build .NET Core or non-Core).

* Removed More Potential .NET Core Compilation Collisions

Added .NET Core specific constraint to seperate Core and non-Core
classes when building

* Additional .NET Core Build Collision Fix

Added an additional condition to separate .NET Core and non-Core builds.

* Added TryAdd Extension Method for Testing

Added an extension method to support `TryAdd()` calls within test cases
across the solution to avoid code duplication.

* Updated Namespace for Dictionary Extension Methods

Changed from `System.Collection.Tests` to `System.Collections.Generic`
as this wasn't actually a test but rather an extension method.

* Removed Previous Duplicate Tests; Added Extension Method

Removed Previous Duplicate Tests; Added Extension Method Usage

* Updated Extension Method Path

Replaced previous relative pathing string with `$(CommonTestPath)`

* Added Missing Generic Type Parameters to TryAdd Extension Method

* Removed Unnecessary Using Statement

* Updated System.Linq.Expressions Tets to use Extension Method

Removed .NET Core duplicate tests; Added reference to new extension
method (from Common\tests)

* Updated System.Private.Xml.Linq .NET Core Tests to Use TryAdd()

Updated System.Private.Xml.Linq .NET Core Tests to Use TryAdd()
extension method.

* Updated System.Collections To Use Dictionary.TryAdd() Extension Method

Removed previous .NET Core duplicated code and references

* Updated Non-ContainsKey() Tests To Use Extension Method

Updated Non-ContainsKey() tests to use the `TryAdd()` extension method
approach

* Extended TryAdd() Extension Method

Updated the existing `TryAdd()` extension method to target any Dictionary
related interfaces (as opposed to Dictionary implementations)

* Updated References in System.Collections.Test

Removed previous .NET Core specific reference; Added extension method
availability

* Added `TryAdd()` Extension Reference

Added the `TryAdd()` extension for some other dictionary tests that rely
on an interface (which now supports the `TryAdd()` method).

* Removed Explicit .NET Core Compilation Constraint

* Fixed Coding Style Issue

Fixed Coding Style Issue of a missing blank line following the closing
gullwing brace for the if-statement.

* Added `<Link>` Section for Extension Method References

Updated all of the previously added extension method `<Compile>`
sections to include a `<Link>` section to improve formatting.

* Added <Link> Section for Dictionary Extensions

Added Missing <Link> Section for Dictionary Extensions


Commit migrated from https://github.com/dotnet/corefx/commit/3d4d8038d1a3f0c56d3046bc7494f30ecc35e67b
2017-03-21 14:58:04 -04:00
Hugh Bellamy 46ceacfbf1 Add more tests for ImmutableInterlocked.InterlockedCompareExchangeArray (dotnet/corefx#17271)
* Add more tests for ImmutableInterlocked.InterlockedCompareExchangeArray

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/fc11eb6079102397cad58b7107ac121e77949591
2017-03-20 08:46:07 -04:00
James Ko 415b725596 Fix erroneous XML doc in ImmutableArray (dotnet/corefx#17255)
Commit migrated from https://github.com/dotnet/corefx/commit/15757a82126c5ce93ee3c6fb3e580c03d35a0c18
2017-03-17 16:58:42 -07:00
Wes Haggard 37d3e399af Refresh current solutions and project configurations
Commit migrated from https://github.com/dotnet/corefx/commit/4df5385dc18fc8c34226267d5ed2f00554a57c9a
2017-03-06 17:16:57 -08:00
James Ko eda0e62217 Optimize ImmutableQueue.CreateRange (dotnet/corefx#15997)
* Optimize ImmutableQueue.CreateRange


Commit migrated from https://github.com/dotnet/corefx/commit/e7444c4316bfd85d9148d86503e5cf97c22f488c
2017-03-06 14:08:40 -05:00
Jose Perez Rodriguez c27ba4f7f6 Add capability of running uapaot ilc tests locally
Commit migrated from https://github.com/dotnet/corefx/commit/cd6bd7cd1a721a714639bba3c1625ab1a0d4b1d9
2017-03-02 09:43:55 -08:00
Dan Moseley 44ac2dd747 Remove dead string resources (dotnet/corefx#16284)
Commit migrated from https://github.com/dotnet/corefx/commit/6b4423f47d5048b4c1437aaefe87859b258c89b7
2017-02-18 06:01:59 -08:00
Eric St. John 342eb1592d Update configs and solutions
Update theses that have become out of sync.


Commit migrated from https://github.com/dotnet/corefx/commit/1548822f8d15dcb5587802c3ce7d70fabcc8c36e
2017-02-16 16:54:55 -08:00
Eric StJohn 1a40c1b651 Merge pull request dotnet/corefx#16191 from ericstj/packages
Re-enable packages for BuildAllConfigurations

Commit migrated from https://github.com/dotnet/corefx/commit/9d1d63fb791e80399b008bc7ed0801fbb49c6e0b
2017-02-16 17:44:52 -05:00
Wes Haggard eb1f0e0530 Remove all .builds files under pkg/ref/src/tests library folders
Commit migrated from https://github.com/dotnet/corefx/commit/b60cbe5a2edb5ef3b88a7738507822d13d125d62
2017-02-15 16:32:03 -08:00
James Ko 8f566124df Consolidate DebuggerProxies for immutable collections (dotnet/corefx#16008)
* Consolidate DebuggerProxies for immutable collections


Commit migrated from https://github.com/dotnet/corefx/commit/62cebc090a77f55437ede55acf68e1341b764da8
2017-02-14 17:22:00 -08:00
Eric St. John ba03538d7c Make pkgprojs reference *proj rather than builds
Commit migrated from https://github.com/dotnet/corefx/commit/0ede35ef512ac16b5dabe8c6b7b3d7d54c1c0ddb
2017-02-14 09:52:02 -08:00
Eric St. John cc939555ea Remove pkg .builds files
Commit migrated from https://github.com/dotnet/corefx/commit/361a62675ad474ac7a6c593becbc35f2cf48e6a3
2017-02-14 09:52:01 -08:00
Tarek Mahmoud Sayed addda8630e Enable tests to compile with netstandard (dotnet/corefx#15956)
* Enable tests to compile with netstandard

Most of the tests have netstandard configurations and it doesn't compile. the changes here is to fix the configurations and the tests to compile.
This is important step to get netfx tests compile too as we are in most of the time netfx fallback to netstandard configuration

The changes include some fixes to compile teh sources too.

* Fix System.Collections.Immutable

* update src configuration

* remove netstandard17 defines

* Split netcoreapp code to its own files

* Remove 17 from the test class name


Commit migrated from https://github.com/dotnet/corefx/commit/15b4f51c2f3cb924840e5407bb8d5fe03bb282ea
2017-02-08 15:32:53 -08:00
Jose Perez Rodriguez d9c497be12 Prepare uap package (dotnet/corefx#15866)
Prepare uap package

Commit migrated from https://github.com/dotnet/corefx/commit/afaaf450d1869992dcf4f51c627f16145cf9c974
2017-02-08 10:39:37 -08:00
David Wrighton 7ee3df8016 Factor ImmutableArray<T> into many files (dotnet/corefx#15526)
* Factor ImmutableArray<T> into many files
- Break immutable array (an enumerable, immutable, array) into a core component
- And a bunch of algorithm components which represents algorithms on the array
- And a bunch of components which represent creation of new related immutable arrays
- The purpose of this work is to make it possible to source include the core of immutable array into a component which cannot depend on high level apis such as LINQ, SortedDictionary, etc. (All api use must be satisfied by System.Private.CoreLib). The work to add this other component (System.Private.Reflection.Metadata.Ecma335 will be delivered via a separate PR)

* Finish merge with ImmutableArray changes

* Reduce number of partial files to two


Commit migrated from https://github.com/dotnet/corefx/commit/29d7b6dee194e71bc5c98eec962bcac39bee8bb7
2017-02-07 09:23:15 -08:00
Stephen Toub a98b806dec Merge pull request dotnet/corefx#15880 from weshaggard/FixDocCommentFileForValueTuple
Fix name of DocumenationFile so intellisense correctly builds

Commit migrated from https://github.com/dotnet/corefx/commit/0d2960a012d0b4a1cd121a733c0ad24cc7050f4f
2017-02-06 19:15:25 -05:00
Wes Haggard c717cd1997 Fix name of DocumenationFile so intellisense correctly builds
Fixes https://github.com/dotnet/corefx/issues/15823


Commit migrated from https://github.com/dotnet/corefx/commit/9f14c0f2d12f8f5f5ed5643df06f4a9fc1625ca8
2017-02-06 15:16:20 -08:00
Tarek Mahmoud Sayed 77cad86b1e Remove versioned configuration from test projects (dotnet/corefx#15879)
The changes onclude some other minor clean up in the test project files

Commit migrated from https://github.com/dotnet/corefx/commit/62212cca900081173fce70991c3a0b30393994a3
2017-02-06 13:52:11 -08:00
Dennis "D.C." Dietrich be2cfb50b5 Marking code as unchecked (pt 1) (dotnet/corefx#15805)
Marking code that may intentionally lead to over or underflows with
unchecked in preparation of turning on CheckForOverflowUnderflow for
all projects (issue dotnet/corefx#3140)

Commit migrated from https://github.com/dotnet/corefx/commit/4cafdebd2ceb5383c12cf70b020a72ae770c0e71
2017-02-06 13:13:59 -08:00
Hugh Bellamy ebcef3646c Remove unused freezeAction parameter from ImmutableSortedDictionary (dotnet/corefx#15861)
* Remove unused freezeAction parameter from ImmutableSortedDictionary
* Remove unused GetValueOrDefault internal method


Commit migrated from https://github.com/dotnet/corefx/commit/4b22889a3ff7c93721340dcf289f29bf72dcae31
2017-02-06 11:04:10 -05:00
Hugh Bellamy c1cfbb28a5 Add several more tests for System.Collections.Immutable
Commit migrated from https://github.com/dotnet/corefx/commit/b6ea4f74fcb9bd189305b600f2af1cfa9014e700
2017-02-06 22:12:44 +07:00
Wes Haggard f2fd0ea78a Update Solution files to use windows path slashes.
Commit migrated from https://github.com/dotnet/corefx/commit/f8ba7c412d06d8e4d4e6278502d4dd771a0f10bb
2017-02-03 16:31:48 -08:00
Eric St. John c2dc83e56a Sync BuildConfiguration with project PropertyGroups
Commit migrated from https://github.com/dotnet/corefx/commit/758a0e16e8c5af8741d14043f4bef1d15a79a377
2017-02-03 08:34:24 -08:00
Eric St. John d9c03a0552 Use a private ExcludeFromCodeCoverageAttribute
System.Collections.Immutable uses ExcludeFromCodeCoverageAttribute
throughout its source, but this was only added in netstandard2.0.

Add a private copy to use in netstandard1.0.


Commit migrated from https://github.com/dotnet/corefx/commit/d676bca8fc1a1707f904c55794f864883b87759d
2017-02-03 08:32:14 -08:00
Tarek Mahmoud Sayed 7395af32ad Enable compiling the test projects against the configuration (dotnet/corefx#15743)
* Enable compiling the test projects against the configuration

The tests were compiled using the vertical configuration and not the best configuration picked from Configurations.props. this change is fix that and have all test projects configured accordingly.
This change ensuring netcoreapp runs successfully and we'll have another rounds later for other configurations like netfx, UAP...etc.

* Fix openssl test project on Linux distros

* Update the project configurations

* Update VS solution files

* update solution files


Commit migrated from https://github.com/dotnet/corefx/commit/e79912f8b77bc22abfd85e94b74c06e5d99e8381
2017-02-02 17:54:40 -08:00
Wes Haggard c4e17cd362 Update all solution files using solution generation tool
Commit migrated from https://github.com/dotnet/corefx/commit/a822a266821cf79df96cdd77d2a3d44f1510d9a0
2017-02-02 15:44:45 -08:00
dotnet bot bbba0d49e9 Update CoreClr, ProjectNTfs to beta-25002-01, beta-25001-00, respectively (master) (dotnet/corefx#15698)
* Modify expected param names for Array.Copy invalid args

* Disable AV'ing vectors test

* Update CoreClr, ProjectNTfs to beta-25002-01, beta-25001-00, respectively

Commit migrated from https://github.com/dotnet/corefx/commit/fee002201a3d91874d44c2794f758bbb8d1548fa
2017-02-01 22:58:51 -08:00
Ian Hays 8e38dd0388 Merge pull request dotnet/corefx#15416 from jamesqo/separate.immutable.files
Split up some immutable collection types into new files

Commit migrated from https://github.com/dotnet/corefx/commit/0b78790e80449ee80dd134af8f39bbaf962b2dd6
2017-02-01 11:00:07 -08:00
Eric St. John c61e84f6ec Clean up desktop Configurations
Remove all cruft from projects related to building desktop configs which
now build in standard repo.


Commit migrated from https://github.com/dotnet/corefx/commit/93b36cc273391a40552613800b6fdaa8685179ae
2017-01-31 19:25:30 -08:00
Eric St. John 60359ed705 Make netfx build work
This fixes all src and ref projects to build when TargetGroup=netfx.


Commit migrated from https://github.com/dotnet/corefx/commit/44df137ce0a9e38883d8f9a1149bdf01e54c8956
2017-01-31 18:43:08 -08:00
Jose Perez Rodriguez a840e703dd Updating VS Configurations
Commit migrated from https://github.com/dotnet/corefx/commit/8e7497f825856eddfd84f81fc4afc0104fb917b0
2017-01-31 15:10:43 -08:00
Eric St. John 95a7c07d4b Fix configurations for UAP
These changes enable TargetGroup=UAP to build completely.


Commit migrated from https://github.com/dotnet/corefx/commit/17fdb439c50f4aa66a99f9b5549e9db923331e40
2017-01-31 06:27:49 -08:00
Eric St. John 2ef0e9bfd8 Sync PropertyGroups and BuildConfigurations
Commit migrated from https://github.com/dotnet/corefx/commit/7e4792af39bd7faba20dd3390b411f3afaee3c66
2017-01-30 13:23:56 -08:00
Eric St. John 3a15f3acd6 Fix src projects for appropriate ref folder
After the change to use the appropriate references for a configuration
we needed to make sure that every library has a versionless targetgroup
so that it can build in the source build scenarios without requiring
external packages from NuGet.

For any library that is part of netstandard, its implementation should
not build against netstandard

For any library that is part of the imlpementation closure of netstandard,
its implementation should not build against netstandard (else we'd have cycles).

OpenSSL must keep its netstandard ref, however it has NETCoreApp specific API
dependencies. See https://github.com/dotnet/standard/issues/186.  As such we
need to cross-compile both src and ref for NETCoreApp.  I've moved the not-
supported assembly to be the 'netstandard' implementation.


Commit migrated from https://github.com/dotnet/corefx/commit/28097ca87cc2e8bcf7760f05732464b2c00eeaa4
2017-01-30 11:14:08 -08:00
James Ko c468107faf Fix dotnet/corefx#14961 and tweak perf in ImmutableArray (dotnet/corefx#15296)
Commit migrated from https://github.com/dotnet/corefx/commit/be3d8cd744648533a548d59e9d7915eacfe74695
2017-01-26 16:10:31 -08:00
James Ko 298cf3f5f7 Move out SortedInt32KeyNode.Enumerator
Commit migrated from https://github.com/dotnet/corefx/commit/d4076c30e20e46b06e2afd2edcae13c858f63346
2017-01-24 01:26:23 -05:00
James Ko d3925383b1 Move ImmutableStack types out
Commit migrated from https://github.com/dotnet/corefx/commit/ee2d03b4fc786f57ada3d35780cd331fb69863cc
2017-01-24 01:21:20 -05:00
James Ko 0fdd32148f Move ImmutableSortedSet types out
Commit migrated from https://github.com/dotnet/corefx/commit/6e6c4208bd3e5eed74887589203aba9a0a5a1cbe
2017-01-24 01:13:31 -05:00