platform/upstream/dotnet/runtime.git
6 years agoFix accessing trimmed paths (dotnet/corefx#26918)
Jeremy Kuhne [Wed, 7 Feb 2018 21:01:16 +0000 (13:01 -0800)]
Fix accessing trimmed paths (dotnet/corefx#26918)

* Fix accessing trimmed paths

Paths with trailing spaces or periods are normally trimmed by Windows. They can, however, be created using `\\?\` or be exposed via mapping of remote file systems. This change fixes the ability to work with returned *Info classes on files of this type.

This change also cleans up the Info classes:

- removes non-relevant comments
- removes "display" paths (limited trust holdover)

Also remove dead PathPair class.

* Fix helper for .NET Standard

Commit migrated from https://github.com/dotnet/corefx/commit/e2cd5a8fc468b63255f91f4f28bccddb3bb31e8f

6 years agoUpdate BuildTools to preview2-02507-01 (dotnet/corefx#26928)
dotnet-maestro-bot [Wed, 7 Feb 2018 20:56:57 +0000 (14:56 -0600)]
Update BuildTools to preview2-02507-01 (dotnet/corefx#26928)

Commit migrated from https://github.com/dotnet/corefx/commit/1363d07c098008826297c58d069f5df3b6aa6860

6 years agoAdding TrimExcess API to Dictionary and providing tests (dotnet/corefx#26239)
Maryam Ariyan [Wed, 7 Feb 2018 20:29:48 +0000 (15:29 -0500)]
Adding TrimExcess API to Dictionary and providing tests (dotnet/corefx#26239)

Commit migrated from https://github.com/dotnet/corefx/commit/301708f83572084775b7b339fb5e0d6a3217c1d6

6 years agoMerge pull request dotnet/corefx#26920 from geoffkizer/upgradetest
Geoff Kizer [Wed, 7 Feb 2018 20:09:08 +0000 (12:09 -0800)]
Merge pull request dotnet/corefx#26920 from geoffkizer/upgradetest

add test for connection upgrade

Commit migrated from https://github.com/dotnet/corefx/commit/257a149d3c3af85e3a486b3a713d3267fd591107

6 years agoFix duplicated refnames (dotnet/corefx#26929)
Matt Mitchell [Wed, 7 Feb 2018 19:31:11 +0000 (11:31 -0800)]
Fix duplicated refnames (dotnet/corefx#26929)

* Fix duplicated refnames

Commit migrated from https://github.com/dotnet/corefx/commit/800974a7170390b364b64643e39777c6907551e6

6 years agoRemove an incorrect CookieParser test. (dotnet/corefx#26927)
Max Kerr [Wed, 7 Feb 2018 19:00:10 +0000 (11:00 -0800)]
Remove an incorrect CookieParser test. (dotnet/corefx#26927)

The test CookieParserGet_SetCookieHeaderValue_Success was written with an incorrect understanding of the desired behavior of CookieParser.Get().

The test was disabled when it was merged, and is fundamentally incorrect enough that it doesn't make sense to rewrite it. The relevant code is already covered by the regular cookie parsing tests.

Fixes: dotnet/corefx#22925

Commit migrated from https://github.com/dotnet/corefx/commit/ff003980926913d799850233ea59b1ebee3ed837

6 years agoaddress review feedback
Geoff Kizer [Wed, 7 Feb 2018 17:32:58 +0000 (09:32 -0800)]
address review feedback

Commit migrated from https://github.com/dotnet/corefx/commit/7b9be1d656ecba48fdb4082b37a66574c3172a4e

6 years agoadd test for connection upgrade
Geoff Kizer [Wed, 7 Feb 2018 08:00:42 +0000 (00:00 -0800)]
add test for connection upgrade

Commit migrated from https://github.com/dotnet/corefx/commit/61eb7b2667465dcc6e4c52829a505d74e51adc4a

6 years agoFix ServicePointManager.ProxyAddressIfNecessary to ignore "system" proxy failures...
Stephen Toub [Wed, 7 Feb 2018 17:27:29 +0000 (12:27 -0500)]
Fix ServicePointManager.ProxyAddressIfNecessary to ignore "system" proxy failures (dotnet/corefx#26925)

The whole ServicePointManager implementation is there just to make basic stuff not fail.  But HttpWebRequest's Proxy defaults to an internal dummy singleton SystemWebProxy whose GetProxy method throws a PlatformNotSupportedException.  Until we can clean that up and have a real proxy in place, we should just eat that PlatformNotSupportedException when the ServicePointManager calls GetProxy.

Commit migrated from https://github.com/dotnet/corefx/commit/a9e01da6f1b3a0dfbc36d17823a2264e2ec47050

6 years agoAdd Connection{Idle}Timeouts to ManagedHandler (dotnet/corefx#26839)
Stephen Toub [Wed, 7 Feb 2018 12:51:10 +0000 (07:51 -0500)]
Add Connection{Idle}Timeouts to ManagedHandler (dotnet/corefx#26839)

* Add Connection{Idle}Timeouts to ManagedHandler

We can agree on the final name(s) when going through API reviews.  For now, I chose what I think are easy to understand names:
- ConnectionTimeout: how long a connection is allowed to be reused before it's no longer usable, defaults to infinite
- ConnectionIdleTimeout: how long a connection can sit idle in the pool before it's no longer usable, defaults to 2 minutes (that value was hardcoded before this change)

* Address PR feedback

Commit migrated from https://github.com/dotnet/corefx/commit/1a5cdbe1af7a5befe16bb4581f29f0af64f4a101

6 years agoUpdate ProjectNTfs, ProjectNTfsTestILC to beta-26207-00, beta-26207-00, respectively...
dotnet-maestro-bot [Wed, 7 Feb 2018 11:23:30 +0000 (05:23 -0600)]
Update ProjectNTfs, ProjectNTfsTestILC to beta-26207-00, beta-26207-00, respectively (dotnet/corefx#26923)

Commit migrated from https://github.com/dotnet/corefx/commit/e03cc8f4c786936ebe63a064088c3554cacddf10

6 years agoMerge pull request dotnet/corefx#26782 from geoffkizer/httpmisc2
Geoff Kizer [Wed, 7 Feb 2018 08:12:58 +0000 (00:12 -0800)]
Merge pull request dotnet/corefx#26782 from geoffkizer/httpmisc2

ManagedHandler: support LF line endings and trailer headers

Commit migrated from https://github.com/dotnet/corefx/commit/ddf2a6d45973d5ceb6b2c9920a23f64094c6da3c

6 years agoAdd ReadOnlySequence API (dotnet/corefx#26694)
Pavel Krymets [Wed, 7 Feb 2018 02:10:26 +0000 (18:10 -0800)]
Add ReadOnlySequence API (dotnet/corefx#26694)

* Add ReadOnlyBuffer API

* Add tests

* Copyrights

* PR Comments

* Fix test

* Add ToString test, remove extra members

* Move more methods to extension class

* Revert ref changes

* Test changes

* Set 1 of PR comments

* Set 2 of PR comments

* Set 2 of PR comments

* Another set of style changes

* Add tests, remove ToString

* More tests

* Add OM ctor back

* PR Comments and coverege

* More comments

* Fix tests

* Add owned memory back

* ReadOnlySequence

* Tests

* Add array

Commit migrated from https://github.com/dotnet/corefx/commit/e35507a84f817d535e37a2e7e31650b966940a46

6 years agoUpdate Sgen version to 2.0 and assembly version to 2.0. (dotnet/corefx#26905)
Huangli Wu [Wed, 7 Feb 2018 01:40:18 +0000 (17:40 -0800)]
Update Sgen version to 2.0 and assembly version to 2.0. (dotnet/corefx#26905)

* Update Sgen version to 2.0 preview2, assembly to 2.0.

* Remove PreReleaseLabel so it will automatically pick up from the branch-wide configured value.

Commit migrated from https://github.com/dotnet/corefx/commit/7af4af92f40a6b4b06e499f65a89895a82c804bf

6 years agoHardening sliding expiration cache test (dotnet/corefx#26883)
Konst Khurin [Wed, 7 Feb 2018 01:26:16 +0000 (17:26 -0800)]
Hardening sliding expiration cache test (dotnet/corefx#26883)

* Hardening sliding expiration cache test
Addressing PR feedback

Commit migrated from https://github.com/dotnet/corefx/commit/b166d4992d358f827724ff6c1eb63bc784c0e52c

6 years agoTests for span overloaded path api (dotnet/corefx#26017)
Anirudh Agnihotry [Tue, 6 Feb 2018 23:54:23 +0000 (15:54 -0800)]
Tests for span overloaded path api (dotnet/corefx#26017)

tests added for span overload for path Apis

Commit migrated from https://github.com/dotnet/corefx/commit/1a21a67b178a4fdbfcc4d1e4f449e5c285af9056

6 years agoDelete dead or redundant code (dotnet/corefx#26890)
Jan Kotas [Tue, 6 Feb 2018 17:11:38 +0000 (09:11 -0800)]
Delete dead or redundant code (dotnet/corefx#26890)

Commit migrated from https://github.com/dotnet/corefx/commit/2b90844626772de05c4ad4c5e349c67e1ded5aa5

6 years agoUpdate ProjectNTfs, ProjectNTfsTestILC to beta-26206-00, beta-26206-00, respectively...
dotnet-maestro-bot [Tue, 6 Feb 2018 07:14:15 +0000 (01:14 -0600)]
Update ProjectNTfs, ProjectNTfsTestILC to beta-26206-00, beta-26206-00, respectively (dotnet/corefx#26884)

Commit migrated from https://github.com/dotnet/corefx/commit/44abe08b8d670d918331f93a3310ca30a01d4263

6 years agoProper check for OpenSSL version in System.Net.Http.Tests (dotnet/corefx#26873)
Paulo Janotti [Tue, 6 Feb 2018 05:43:37 +0000 (21:43 -0800)]
Proper check for OpenSSL version in System.Net.Http.Tests (dotnet/corefx#26873)

Disable the tests affected by dotnet/corefx#26803 in the correct way so tests are skipped only when needed.

Commit migrated from https://github.com/dotnet/corefx/commit/cd26075ef0d371e222ab52a1322ea9a73f07ad72

6 years agoConditionally skip test causing assert in WSL. (dotnet/corefx#26875)
Paulo Janotti [Tue, 6 Feb 2018 05:40:59 +0000 (21:40 -0800)]
Conditionally skip test causing assert in WSL. (dotnet/corefx#26875)

Skip test in WSL until dotnet/corefx#26813 and dotnet/corefx#26476 are fixed

Commit migrated from https://github.com/dotnet/corefx/commit/d9665c946e47dc9a3cf4b4669d73f9d49a752a68

6 years agoRevert "Add temporary logging to help us trace down root cause for dotnet/coreclrdotn...
Jan Kotas [Tue, 6 Feb 2018 04:56:54 +0000 (20:56 -0800)]
Revert "Add temporary logging to help us trace down root cause for dotnet/coreclrdotnet/corefx#16063 (dotnet/corefx#26866)" (dotnet/corefx#26885)

This reverts commit dotnet/corefx@8c947b77660ddb4f50b105d2292c33125cf13abd.

Commit migrated from https://github.com/dotnet/corefx/commit/5252fba82f5e1066f4bfa8ce0f67227afc2cc7e0

6 years agoAdd the ability to specify case matching behavior for GetFiles (dotnet/corefx#26876)
Jeremy Kuhne [Tue, 6 Feb 2018 04:02:52 +0000 (20:02 -0800)]
Add the ability to specify case matching behavior for GetFiles (dotnet/corefx#26876)

Commit migrated from https://github.com/dotnet/corefx/commit/08dad51fac5f51eaa8fe19ae0997dd6bfb9706ec

6 years agoUpdate for in, readonly struct, ref struct (dotnet/corefx#26841)
Ben Adams [Tue, 6 Feb 2018 03:44:25 +0000 (03:44 +0000)]
Update for in, readonly struct, ref struct (dotnet/corefx#26841)

Commit migrated from https://github.com/dotnet/corefx/commit/ae551db998ee34527ba7ac607122634e9daa4d13

6 years agoAdd temporary logging to help us trace down root cause for dotnet/coreclrdotnet/coref...
Jan Kotas [Tue, 6 Feb 2018 02:29:34 +0000 (18:29 -0800)]
Add temporary logging to help us trace down root cause for dotnet/coreclrdotnet/corefx#16063 (dotnet/corefx#26866)

Commit migrated from https://github.com/dotnet/corefx/commit/8c947b77660ddb4f50b105d2292c33125cf13abd

6 years agoCleanup
Jan Kotas [Tue, 6 Feb 2018 00:21:52 +0000 (16:21 -0800)]
Cleanup

Commit migrated from https://github.com/dotnet/corefx/commit/4d091d49fa227707ef417b66db18ed3d53690a78

6 years agoAdd tests for when array/string are null but start/length are non-zero.
ahsonkhan [Mon, 5 Feb 2018 23:08:07 +0000 (15:08 -0800)]
Add tests for when array/string are null but start/length are non-zero.

Commit migrated from https://github.com/dotnet/corefx/commit/8160e482ed78256d074f2944f3677fd53c597500

6 years agoRegex perf test (dotnet/corefx#26827)
Dan Moseley [Tue, 6 Feb 2018 01:57:36 +0000 (17:57 -0800)]
Regex perf test (dotnet/corefx#26827)

* Regex perf test

* caps

Commit migrated from https://github.com/dotnet/corefx/commit/80ef82cc5b7b83477dce193d11cb20a969425724

6 years agoDisable UAP official builds (dotnet/corefx#26871)
Jan Kotas [Tue, 6 Feb 2018 00:31:15 +0000 (16:31 -0800)]
Disable UAP official builds (dotnet/corefx#26871)

Commit migrated from https://github.com/dotnet/corefx/commit/ef79caf14cd922c8aa1a9aa280cbe503fdce26aa

6 years agoDisable some System.Net.WebHeaderCollection tests on Mono. (dotnet/corefx#26862)
Martin Baulig [Mon, 5 Feb 2018 23:46:32 +0000 (18:46 -0500)]
Disable some System.Net.WebHeaderCollection tests on Mono. (dotnet/corefx#26862)

Commit migrated from https://github.com/dotnet/corefx/commit/0995ed1580cd2d27e28c4fb07e8e849f8251fe0c

6 years agoFix some S.Drawing.Common licence headers (dotnet/corefx#26863)
Santiago Fernandez Madero [Mon, 5 Feb 2018 23:46:18 +0000 (15:46 -0800)]
Fix some S.Drawing.Common licence headers (dotnet/corefx#26863)

Commit migrated from https://github.com/dotnet/corefx/commit/5102db65cef0b3b1ea46e30f699e834d8e923e82

6 years agoFile enumeration extensibility (dotnet/corefx#26806)
Jeremy Kuhne [Mon, 5 Feb 2018 23:28:14 +0000 (15:28 -0800)]
File enumeration extensibility (dotnet/corefx#26806)

* Windows file enumeration extensibility

This is the Windows implementation of System.IO.Enumeration. It adds
new find options to existing APIs and a public extensibilty model
for richer, low allocation file system enumeration.

The Unix implementation is in progress.

* Initial naive Unix implementation of FileSystemEnumerator

* Move a netcoreapp test to the right group

* Fix WinRT build.

* Address feedback from @danmosemsft

* Remove inline attribute

* Remove IsNameDotOrDotDot property

* Address futher feedback.

* Remove unreferenced common code

Commit migrated from https://github.com/dotnet/corefx/commit/66ada723c1b0ae9062a0e7b0b28862014b985019

6 years agoAdd System.Security.Permissions netfx facade and mark some APIs as obsolet to match...
Santiago Fernandez Madero [Mon, 5 Feb 2018 22:08:26 +0000 (14:08 -0800)]
Add System.Security.Permissions netfx facade and mark some APIs as obsolet to match desktop (dotnet/corefx#26758)

* Add System.Security.Permissions netfx facade and mark some APIs as obsolet to match desktop

* PR Feedback

Commit migrated from https://github.com/dotnet/corefx/commit/2ef483fd4aab623e54379be1292999c1fb39a3fa

6 years agoRemove no warn tag in Microsoft.XmlSerializer.Geerator.csproj (dotnet/corefx#26857)
Jiayi Yu [Mon, 5 Feb 2018 21:36:42 +0000 (13:36 -0800)]
Remove no warn tag in Microsoft.XmlSerializer.Geerator.csproj (dotnet/corefx#26857)

Commit migrated from https://github.com/dotnet/corefx/commit/ae310efe40837939c11f74d71f5fd2b0d54b0765

6 years agoDisable some System.Net.Requests tests on Mono. (dotnet/corefx#26858)
Martin Baulig [Mon, 5 Feb 2018 21:19:50 +0000 (16:19 -0500)]
Disable some System.Net.Requests tests on Mono. (dotnet/corefx#26858)

These tests were already disabled on .NET Framework.

Commit migrated from https://github.com/dotnet/corefx/commit/456522650637e20251a0f423d685c017524c4155

6 years agoAdd stress test to System.Threading.Channels (dotnet/corefx#26655)
Tarek Mahmoud Sayed [Mon, 5 Feb 2018 20:39:57 +0000 (12:39 -0800)]
Add stress test to System.Threading.Channels (dotnet/corefx#26655)

* Add stress test to System.Threading.Channels

* Address the feedback

* remove un-needed line

* Add more reading and writing patterns

* Add missed suggested assert

* Feedback addressing and use IsStressModeEnabled instead of  outerloop

Commit migrated from https://github.com/dotnet/corefx/commit/5bc8074a0d4b01155319b21de1bd0713cb27bbca

6 years agoclean up encoding handling
Geoff Kizer [Mon, 5 Feb 2018 19:09:59 +0000 (11:09 -0800)]
clean up encoding handling

Commit migrated from https://github.com/dotnet/corefx/commit/3d2f149c5891ee9095de2b50877676b903002147

6 years agoDisable Http test for 26770 (dotnet/corefx#26854)
Dan Moseley [Mon, 5 Feb 2018 18:58:56 +0000 (10:58 -0800)]
Disable Http test for 26770 (dotnet/corefx#26854)

Commit migrated from https://github.com/dotnet/corefx/commit/8c3ac0912ef40ae98835f3188fa75605210253a8

6 years agoaddress review feedback
Geoff Kizer [Mon, 5 Feb 2018 18:04:03 +0000 (10:04 -0800)]
address review feedback

Commit migrated from https://github.com/dotnet/corefx/commit/4103b918249282a40b53e30f7825b9a22a35acff

6 years agoUpdate CoreClr to preview2-26205-05 (dotnet/corefx#26842)
dotnet-maestro-bot [Mon, 5 Feb 2018 17:03:38 +0000 (11:03 -0600)]
Update CoreClr to preview2-26205-05 (dotnet/corefx#26842)

Commit migrated from https://github.com/dotnet/corefx/commit/433b79e67e091539e3555670a9b68b6d169b445d

6 years agoFix regex scanner for `\c[` (dotnet/corefx#26828)
Dan Moseley [Mon, 5 Feb 2018 16:58:52 +0000 (08:58 -0800)]
Fix regex scanner for `\c[` (dotnet/corefx#26828)

* Fix with test

* Avoid excess allocations

* Negative test

* Exclude from NETFX

* Avoid default params

* NETFX

Commit migrated from https://github.com/dotnet/corefx/commit/80e220fc7009de0f0611ee6b52d4d5ffd25eb6c7

6 years agoReduce test run time to help avoid timeouts in CI for outerloop tests (dotnet/corefx...
Ahson Khan [Mon, 5 Feb 2018 06:18:25 +0000 (22:18 -0800)]
Reduce test run time to help avoid timeouts in CI for outerloop tests (dotnet/corefx#26751)

* Add XunitShowProgress to help debug the hang in S.M outerloop tests

* Reduce TwoGiBOverflowInt32TestData and use AllocationHelper in Base64 test.

* Improve the runtime of Large Clear test and remove XunitShowProgress

Commit migrated from https://github.com/dotnet/corefx/commit/4fd86200e3bf38d8d90bac669b00173980c31e25

6 years agoDisable Net.Http tests failing in Fedora.27 (dotnet/corefx#26835)
Paulo Janotti [Mon, 5 Feb 2018 03:45:40 +0000 (19:45 -0800)]
Disable Net.Http tests failing in Fedora.27 (dotnet/corefx#26835)

* Disable Net.Http tests failing in Fedora.27 (dotnet/corefx#26803)

* Adding comments for when tracking issue is fixed.

Commit migrated from https://github.com/dotnet/corefx/commit/e9be24d1913af98a671734267c212597fecfea70

6 years agoChange the semantics of Span ToString to return the contents for T=char (dotnet/coref...
Ahson Khan [Mon, 5 Feb 2018 03:08:16 +0000 (19:08 -0800)]
Change the semantics of Span ToString to return the contents for T=char (dotnet/corefx#26726)

* Change the semantics of Span ToString to return the contents for T=char

* Updating ToString tests.

* Fix the expected value in tests and add Span<string> test.

* Add missing ToString methods to the reference assemblies.

Commit migrated from https://github.com/dotnet/corefx/commit/928d525681cb165cb9112ea5f2686571c05eb7fa

6 years agoTypeDefinition.IsNested Property (dotnet/corefx#25963)
Kassem Sandarusi [Sun, 4 Feb 2018 21:26:16 +0000 (15:26 -0600)]
TypeDefinition.IsNested Property (dotnet/corefx#25963)

* Adding API TypeDefinition.IsNested. Closes dotnet/corefx#5377

* Adding related tests.

* fixing backward asserts.

* Switching to expression-bodied syntax.

* Adding doc comment. Switching to an assembly that actually has nested types.

* Fixing xml doc comment to align with msdn comment style.

* Update TypeDefinition.cs

Fixing bad grammar in comments.

Commit migrated from https://github.com/dotnet/corefx/commit/af18a5fe0d4aab25d8fcb6900fcffa8c99befb60

6 years agoremove special-cases TKey string (dotnet/corefx#26816)
Marco Rossignoli [Sun, 4 Feb 2018 18:20:57 +0000 (19:20 +0100)]
remove special-cases TKey string (dotnet/corefx#26816)

Commit migrated from https://github.com/dotnet/corefx/commit/5d71d9ea70418c26874949b36e6434c4849fde52

6 years agoFix IndexOutOfRange for invalid grouping construct (dotnet/corefx#26829)
Dan Moseley [Sun, 4 Feb 2018 18:15:06 +0000 (10:15 -0800)]
Fix IndexOutOfRange for invalid grouping construct (dotnet/corefx#26829)

* Fix method name

* Fix IndexOutOfRange for invalid grouping construct

* Skip test on NETFX

Commit migrated from https://github.com/dotnet/corefx/commit/3cd61ad064e7d14e8c3452ef2dba288cac5ab0e0

6 years agoUpdate CoreClr to preview2-26204-05 (dotnet/corefx#26832)
dotnet-maestro-bot [Sun, 4 Feb 2018 17:03:18 +0000 (11:03 -0600)]
Update CoreClr to preview2-26204-05 (dotnet/corefx#26832)

Commit migrated from https://github.com/dotnet/corefx/commit/012791a249b131642eb08d2f158bbc097137c3de

6 years agoMerge pull request dotnet/corefx#26825 from jkotas/master-UpdateDependencies
Stephen Toub [Sun, 4 Feb 2018 11:19:22 +0000 (06:19 -0500)]
Merge pull request dotnet/corefx#26825 from jkotas/master-UpdateDependencies

Update CoreClr to preview2-26204-01 (master)

Commit migrated from https://github.com/dotnet/corefx/commit/8dbeee99ce48a46c3cee9d1b765c3b31af94e172

6 years agoDisable UAP configurations in all configurations build
Jan Kotas [Sat, 3 Feb 2018 08:07:10 +0000 (00:07 -0800)]
Disable UAP configurations in all configurations build

Commit migrated from https://github.com/dotnet/corefx/commit/2202b4fd49ace58876763903f43cf27b2275c10a

6 years agoDisable or fix failing tests
Jan Kotas [Sun, 4 Feb 2018 05:46:11 +0000 (21:46 -0800)]
Disable or fix failing tests

Commit migrated from https://github.com/dotnet/corefx/commit/87fd2766fdb3920b307b873c1cff824bebd17f3b

6 years agoChanging Span to return default on null instead of throwing.
ahsonkhan [Sat, 3 Feb 2018 01:10:37 +0000 (17:10 -0800)]
Changing Span to return default on null instead of throwing.

Commit migrated from https://github.com/dotnet/corefx/commit/cd48d8680762ab47e39236227c346efa042d789c

6 years agoUpdate System.Diagnostic.Debug whitebox test to match CoreCLR changes
Jan Kotas [Sun, 4 Feb 2018 04:30:15 +0000 (20:30 -0800)]
Update System.Diagnostic.Debug whitebox test to match CoreCLR changes

Commit migrated from https://github.com/dotnet/corefx/commit/c98a1539d423bb579af01610bec73b79559156bb

6 years agoUse Vector<T> from System.Private.CoreLib.
Eric Erhardt [Wed, 31 Jan 2018 20:36:12 +0000 (14:36 -0600)]
Use Vector<T> from System.Private.CoreLib.

Add TypeForwards for Vector<T> in System.Numerics.Vectors to CoreLib when building for netcoreapp.

Commit migrated from https://github.com/dotnet/corefx/commit/3ad966ff5250f96026522884ffb678160d501c17

6 years agoUpdate CoreClr to preview2-26204-01
dotnet-maestro-bot [Sun, 4 Feb 2018 01:30:10 +0000 (17:30 -0800)]
Update CoreClr to preview2-26204-01

Commit migrated from https://github.com/dotnet/corefx/commit/40ef474fb5ef4e8d7ccdcc34c936dfe4e81c120c

6 years agoCodecoverage corefx\src\System.Reflection.Metadata\src\System\Reflection\Metadata...
dajeffri [Sun, 4 Feb 2018 04:01:46 +0000 (23:01 -0500)]
Codecoverage corefx\src\System.Reflection.Metadata\src\System\Reflection\Metadata\MetadataReader.cs  (dotnet/corefx#26321)

* Code Coverage

Complete for ReadMetadataHeader, GetMetadataKind, and ReadStreamHeaders.

* Cleaned up Code

* Code coverage for InitializeStreamReaders

Completes missing code coverage for InitializeStreamReaders

* ReadStandalonePortablePdbStream code coverage

Code coverage for System.Reflection.Metadata.MetadataReader.ReadStandalonePortablePdbStream

* Codecoverage for MetaDataTableHeaders

* Code coverage for ReadMetadataTableRowCounts

Completes code coverage for ReadMetadataTableRowCounts

* completes constructor coverage

Completes constructor coverage for System.Reflection.Metadata.MetadataReader except lines 776-778. These appear unreachable.

* use Array.Copy instead of InsertBytes, change FindIndex to IndexOf, and remove Array.Copy from IndexOf

Changes from feedback. Use Array.Copy instead of InsertBytes, remove InsertBytes, change FindIndex to IndexOf, and remove Array.Copy from IndexOf.  I can't find a SequenceEqual that takes a start index and length. I used slice inside of SequenceEqual and it performs better.

* Found one missing test and one duplicate

Commit migrated from https://github.com/dotnet/corefx/commit/d4d1f4a6ecf2dc8058d5e1278f1cdcb9d4796ac1

6 years agoUpdate performance-tests.md
Dan Moseley [Sun, 4 Feb 2018 04:01:06 +0000 (20:01 -0800)]
Update performance-tests.md

Commit migrated from https://github.com/dotnet/corefx/commit/1678ac268e2517ccdbda9156d15a6d7bad5e825a

6 years agoDisable UAP legs per dotnet/corefx#26802 (dotnet/corefx#26822)
Jan Kotas [Sun, 4 Feb 2018 03:22:16 +0000 (19:22 -0800)]
Disable UAP legs per dotnet/corefx#26802 (dotnet/corefx#26822)

Commit migrated from https://github.com/dotnet/corefx/commit/120dce456a90df9982797d6c94eaaababd3e00d1

6 years agoDisable ExpectContinue in ManagedHandler when using version 1.0 (dotnet/corefx#26774)
Stephen Toub [Sat, 3 Feb 2018 11:07:36 +0000 (06:07 -0500)]
Disable ExpectContinue in ManagedHandler when using version 1.0 (dotnet/corefx#26774)

Don't fail, but disable sending the header and respecting the setting if the version is 1.0.

Commit migrated from https://github.com/dotnet/corefx/commit/8ec2cf215893c1f86c25bc079ff67e67678e0a04

6 years agoEnable Stress mode environment variable (dotnet/corefx#26808)
Tarek Mahmoud Sayed [Sat, 3 Feb 2018 11:05:59 +0000 (03:05 -0800)]
Enable Stress mode environment variable (dotnet/corefx#26808)

* Enable Stress mode environment variable

To write any stress test, you may mark the stress test case with one of the attributes:

[ConditionalFact(typeof(TestEnvironment), nameof(TestEnvironment.IsStressModeEnabled))]
[ConditionalTheory(typeof(TestEnvironment), nameof(TestEnvironment.IsStressModeEnabled))]

and set the value of the environment variable COREFX_STRESS to 1 or true

* apply the stress mode detection on System.Net.Http

* remove un-needed comments

Commit migrated from https://github.com/dotnet/corefx/commit/3d38415b8df3a707834e05830a9f78185ebd7b18

6 years agoUse Temp tables in tests (dotnet/corefx#26805)
Saurabh Singh [Sat, 3 Feb 2018 06:36:07 +0000 (22:36 -0800)]
Use Temp tables in tests (dotnet/corefx#26805)

* Move tests to use Temp tables to avoid problems with NetFx Tests

* Fix indentation

Commit migrated from https://github.com/dotnet/corefx/commit/a4e3009f56530e49796db10fe0e460f8eaf44ba8

6 years agoFix issues with test tables in SqlClient tests (dotnet/corefx#26809)
Cory Rivera [Sat, 3 Feb 2018 05:31:21 +0000 (21:31 -0800)]
Fix issues with test tables in SqlClient tests (dotnet/corefx#26809)

* Check if full-text index exists before running WarningsBeforeRowsTest.

* Remove identity columns from the temp tables created in AdapterTest.

Commit migrated from https://github.com/dotnet/corefx/commit/3952fdd5072ea38705df9e86cdc5dc4a4c47cc41

6 years agoFix test PostAsync_ThrowFromContentCopy_RequestFails (dotnet/corefx#26794)
Paulo Janotti [Sat, 3 Feb 2018 03:07:29 +0000 (19:07 -0800)]
Fix test PostAsync_ThrowFromContentCopy_RequestFails (dotnet/corefx#26794)

* Fix test to catch proper exception according to handler

* Removing test trait added for my local tests

* Uap handler behaves like the managed one

* Switch if branching for simpler condition

Commit migrated from https://github.com/dotnet/corefx/commit/f38afda24305979be4613d08df8ea154a6a2d16d

6 years agoUpdate BuildTools, CoreClr, CoreFx, ProjectNTfs, ProjectNTfsTestILC to preview2-02502...
dotnet-maestro-bot [Sat, 3 Feb 2018 02:41:38 +0000 (20:41 -0600)]
Update BuildTools, CoreClr, CoreFx, ProjectNTfs, ProjectNTfsTestILC to preview2-02502-01, preview2-26202-06, preview2-26202-05, beta-26202-01, beta-26202-01, respectively (master) (dotnet/corefx#26776)

* Update BuildTools, CoreClr, CoreFx, ProjectNTfs, ProjectNTfsTestILC to preview2-02502-01, preview2-26202-06, preview2-26202-05, beta-26202-01, beta-26202-01, respectively

* Fix name of ConvertScalarToVector128UInt32 to match coreclr.

Commit migrated from https://github.com/dotnet/corefx/commit/08ba5c32326ba5dae10d5ba92fcf6b22a754189a

6 years agoAdd Debug Views to the Channel (dotnet/corefx#26795)
Tarek Mahmoud Sayed [Sat, 3 Feb 2018 02:33:59 +0000 (18:33 -0800)]
Add Debug Views to the Channel (dotnet/corefx#26795)

* Add Debug Views to the Channel

* Add Debug Attributes test

Commit migrated from https://github.com/dotnet/corefx/commit/ea356c0b48869cc8dd374cd657c5835b3625f869

6 years agoSystem.Memory source cleanup and fix byteOffset check in tests (dotnet/corefx#26598)
Ahson Khan [Sat, 3 Feb 2018 02:20:16 +0000 (18:20 -0800)]
System.Memory source cleanup and fix byteOffset check in tests (dotnet/corefx#26598)

* String-like Span extension methods - Remove / PadLeft and Right

* Get rid off Remove, update PadLeft/Right and address feedback.

* Update PadLeft and PadRight tests since we removed totalWidth

* Getting rid of PadLeft and PadRight APIs. Add later if needed.

Commit migrated from https://github.com/dotnet/corefx/commit/1d19c3a3448cdc67322f3331297f22665621c90c

6 years agoUpdate TVPTest error comparisons to use error codes instead of full exception message...
Cory Rivera [Sat, 3 Feb 2018 01:02:26 +0000 (17:02 -0800)]
Update TVPTest error comparisons to use error codes instead of full exception messages. Exception messages can be slightly different between different versions of SQL Server. (dotnet/corefx#26800)

Commit migrated from https://github.com/dotnet/corefx/commit/0e67638b1505c7ee19c36ac8df7c988eef8af02b

6 years agoUpdated contract and exposed GetSchema and GetSchemaTable methods (dotnet/corefx...
Keerat Singh [Fri, 2 Feb 2018 22:14:43 +0000 (14:14 -0800)]
Updated contract and exposed GetSchema and GetSchemaTable methods (dotnet/corefx#26762)

* Updated contract and exposed GetSchema and GetSchemaTable methods via concrete classes SqlConnection and SqlDataReader respectively

* Updated DataTable to fully qualified name

Commit migrated from https://github.com/dotnet/corefx/commit/3d395687a9745c0df49f453335dd802367e4a8c2

6 years agoAdding EnsureCapacity API to HashSet (dotnet/corefx#26777)
Maryam Ariyan [Fri, 2 Feb 2018 22:04:10 +0000 (17:04 -0500)]
Adding EnsureCapacity API to HashSet (dotnet/corefx#26777)

* Adding EnsureCapacity API to hash set

* Making EnsureCapacity tests generic when possible

Issue is: dotnet/corefx#24445

Commit migrated from https://github.com/dotnet/corefx/commit/e7de7f7c8add536edd5c4120ab63e7d44fae894b

6 years agoSpan factoring (dotnet/corefx#26667)
Tarek Mahmoud Sayed [Fri, 2 Feb 2018 19:40:39 +0000 (11:40 -0800)]
Span factoring (dotnet/corefx#26667)

Commit migrated from https://github.com/dotnet/corefx/commit/a68803c848df70ae900f53e602424ba71a4760b1

6 years agoget connection from pool to send digest auth response (dotnet/corefx#26733)
Tomas Weinfurt [Fri, 2 Feb 2018 18:15:47 +0000 (10:15 -0800)]
get connection from pool to send digest auth response (dotnet/corefx#26733)

* get connection from pool to send digest auth response
* fix incorrect comment.
* s/TBD/TODO/

Commit migrated from https://github.com/dotnet/corefx/commit/c727d1226a886a8ac2d2fdef64cc56a8eee7f8f9

6 years agoDisable failing DNS tests on macOS (dotnet/corefx#26790)
Stephen Toub [Fri, 2 Feb 2018 15:47:00 +0000 (10:47 -0500)]
Disable failing DNS tests on macOS (dotnet/corefx#26790)

Commit migrated from https://github.com/dotnet/corefx/commit/524f01c982407591051b69e6fb13d9ffbc0e36fa

6 years agoUpdate environment variable used for Http.StressEnabled
Stephen Toub [Fri, 2 Feb 2018 14:53:22 +0000 (09:53 -0500)]
Update environment variable used for Http.StressEnabled

Commit migrated from https://github.com/dotnet/corefx/commit/63c75d00971702d0a07edd648db1c7a821c53649

6 years agoClean up ManagedHandler sending of request content (dotnet/corefx#26759)
Stephen Toub [Fri, 2 Feb 2018 13:50:35 +0000 (08:50 -0500)]
Clean up ManagedHandler sending of request content (dotnet/corefx#26759)

* Clean up ManagedHandler sending of request content

Centralize the copy into the function that actually sends the content.

* Add HttpClientHandler test for handling request content copy failure

Commit migrated from https://github.com/dotnet/corefx/commit/6f8a600be95671162bd4de3014adafabe0a0e5ed

6 years agosupport LF line endings and trailer headers
Geoff Kizer [Thu, 25 Jan 2018 20:36:17 +0000 (12:36 -0800)]
support LF line endings and trailer headers

Commit migrated from https://github.com/dotnet/corefx/commit/85c943fb8388585a7d49a75b879844d68962a6ab

6 years agoImproving EnsureCapacity unit tests (dotnet/corefx#26653)
Maryam Ariyan [Fri, 2 Feb 2018 07:00:53 +0000 (02:00 -0500)]
Improving EnsureCapacity unit tests (dotnet/corefx#26653)

* Improving Dictionary EnsureCapacity unit tests

* Adding test showing the enumerator does not get invalidated after EnsureCapacity

Commit migrated from https://github.com/dotnet/corefx/commit/1852360d581843e36675d85efe9af666a7cfa964

6 years agoFix ManagedHandler env var / AppContext handling (dotnet/corefx#26763)
Stephen Toub [Fri, 2 Feb 2018 03:04:16 +0000 (22:04 -0500)]
Fix ManagedHandler env var / AppContext handling (dotnet/corefx#26763)

* Fix ManagedHandler env var / AppContext handling

* Update two names

* Update README.md

Commit migrated from https://github.com/dotnet/corefx/commit/473a4cf05c28f95d8a93b826647f755dbdec8728

6 years agobugfix and adding test for GetFolderPath when special folder doesnt exist (dotnet...
Maryam Ariyan [Fri, 2 Feb 2018 02:25:21 +0000 (21:25 -0500)]
bugfix and adding test for GetFolderPath when special folder doesnt exist (dotnet/corefx#26731)

Fixing exception on GetFolderPath in Unix when special folder doesnt exist

Fixes dotnet/corefx#26677

Commit migrated from https://github.com/dotnet/corefx/commit/6f5ce856e9f40a7d247c241a6bb916fc546045ff

6 years agoDisable SetDelegate_ConnectionSucceeds on Linux (dotnet/corefx#26773)
Stephen Toub [Fri, 2 Feb 2018 01:58:20 +0000 (20:58 -0500)]
Disable SetDelegate_ConnectionSucceeds on Linux (dotnet/corefx#26773)

Commit migrated from https://github.com/dotnet/corefx/commit/166f2bacd530d658fa889731e5989b89f2aedee4

6 years agoMove ManagedHandler version/chunking validation earlier (dotnet/corefx#26766)
Stephen Toub [Fri, 2 Feb 2018 01:15:16 +0000 (20:15 -0500)]
Move ManagedHandler version/chunking validation earlier (dotnet/corefx#26766)

Move it to ManagedHandler.SendAsync rather than HttpConnection.SendAsync so that it happens before we even try to get a connection.  A minor benefit of the change as well is that isHttp10 is no longer lifted to the state machine.

Commit migrated from https://github.com/dotnet/corefx/commit/bb738a07720a8c0888a088f2adb737d2cbe09ca2

6 years agoUse TryFormat with spans in a few more places in ManagedHandler (dotnet/corefx#26755)
Stephen Toub [Fri, 2 Feb 2018 01:07:57 +0000 (20:07 -0500)]
Use TryFormat with spans in a few more places in ManagedHandler (dotnet/corefx#26755)

Commit migrated from https://github.com/dotnet/corefx/commit/2b4664a53d8a5729343f056ffa82ff5cb4d32d40

6 years agoRemove Supports* properties from ManagedHandler (dotnet/corefx#26764)
Stephen Toub [Fri, 2 Feb 2018 01:07:44 +0000 (20:07 -0500)]
Remove Supports* properties from ManagedHandler (dotnet/corefx#26764)

Commit migrated from https://github.com/dotnet/corefx/commit/c18664d0d55dad41d00193ac182e292c0c6cd458

6 years agoMerge pull request dotnet/corefx#26723 from MattGal/Update-From-EOL-Linux
Matt Galbraith [Fri, 2 Feb 2018 01:01:24 +0000 (17:01 -0800)]
Merge pull request dotnet/corefx#26723 from MattGal/Update-From-EOL-Linux

Update Linux Versions for test execution

Commit migrated from https://github.com/dotnet/corefx/commit/cfca3aac61689191888a6d074caca6dad3a95d6c

6 years agoBigInteger based random testing of Decimal (part 2) (dotnet/corefx#26338)
Pent Ploompuu [Thu, 1 Feb 2018 22:57:03 +0000 (00:57 +0200)]
BigInteger based random testing of Decimal (part 2) (dotnet/corefx#26338)

Commit migrated from https://github.com/dotnet/corefx/commit/64634c7c7f260a1025d61c7b0523fc522523932c

6 years agoSome cleanups for test execution, in preparation of removing support for running...
Matt Galbraith [Wed, 31 Jan 2018 23:26:41 +0000 (15:26 -0800)]
Some cleanups for test execution, in preparation of removing support for running on EOL Linux OSes.
Removals:
Fedora 25 - EOL 12/20/17
OpenSUSE 42.2 - EOL 01/26/18
RedHat 7.2 - EOL 11/30/17

Additions:
OpenSUSE 42.3
Fedora 27

Commit migrated from https://github.com/dotnet/corefx/commit/3de89a70a1ac81d420543604cf1956818abbe7e8

6 years agoDisable Test_Write_Metric_EventListener test (dotnet/corefx#26761)
Stephen Toub [Thu, 1 Feb 2018 22:22:53 +0000 (17:22 -0500)]
Disable Test_Write_Metric_EventListener test (dotnet/corefx#26761)

Commit migrated from https://github.com/dotnet/corefx/commit/b60c5db080b2fe4c1457cce3acd2647f8ebc4e99

6 years agoUse ValueTask shared from corelib (dotnet/corefx#26636)
Stephen Toub [Thu, 1 Feb 2018 22:22:00 +0000 (17:22 -0500)]
Use ValueTask shared from corelib (dotnet/corefx#26636)

Commit migrated from https://github.com/dotnet/corefx/commit/7b6abc253912de3caeddfcb06aa3f619255351f7

6 years agoOnly search for member types in Microsoft.CSharp member lookup. (dotnet/corefx#26633)
Jon Hanna [Thu, 1 Feb 2018 20:23:58 +0000 (20:23 +0000)]
Only search for member types in Microsoft.CSharp member lookup. (dotnet/corefx#26633)

As opposed to nested classes, or type parameters.

Fixes dotnet/corefx#26632

Commit migrated from https://github.com/dotnet/corefx/commit/9bf574ec5edeb682f46e9635447fe3dc84fc4efa

6 years agoDisable Brotli perf tests (dotnet/corefx#26746)
Stephen Toub [Thu, 1 Feb 2018 18:52:25 +0000 (13:52 -0500)]
Disable Brotli perf tests (dotnet/corefx#26746)

Commit migrated from https://github.com/dotnet/corefx/commit/033851fe7d545d6e48fe492fe110e5b72c8d2668

6 years agoDisable failing NameResolutionPalTests (dotnet/corefx#26747)
Stephen Toub [Thu, 1 Feb 2018 18:52:11 +0000 (13:52 -0500)]
Disable failing NameResolutionPalTests (dotnet/corefx#26747)

Commit migrated from https://github.com/dotnet/corefx/commit/0bc7246a14c0dea01926ba371009a3a14c557c0b

6 years agoMake SslStreamInternal to free resources with SslStream dispose. (dotnet/corefx#26666)
Lakshmi Priya Sekar [Thu, 1 Feb 2018 18:43:27 +0000 (10:43 -0800)]
Make SslStreamInternal to free resources with SslStream dispose. (dotnet/corefx#26666)

* Make SslStreamInternal to free resources with SslStream dispose.

* Fix framework test.

* Respond to PR feedback.

Commit migrated from https://github.com/dotnet/corefx/commit/04f0b1eeb4c634b1f41f396244892571e94b5b16

6 years agointecept -> intercept (dotnet/corefx#26742)
John Doe [Thu, 1 Feb 2018 17:46:48 +0000 (09:46 -0800)]
intecept -> intercept (dotnet/corefx#26742)

* typo

* typo

* Typo

* Typo

* Fix a typo

Commit migrated from https://github.com/dotnet/corefx/commit/7c4d35b12e16beaf8a10c9d9b304c6b92defcb61

6 years agoNetworkChange should capture AsyncLocals (but not to Timer) (dotnet/corefx#26073)
Ben Adams [Thu, 1 Feb 2018 17:40:08 +0000 (17:40 +0000)]
NetworkChange should capture AsyncLocals (but not to Timer) (dotnet/corefx#26073)

* NetworkChange shouldn't capture AsyncLocals into its Timer

* Capture EC on Linux

* Capture EC on OSX

* Feedback/dedupe platforms

* Better null checking

Commit migrated from https://github.com/dotnet/corefx/commit/60003797de586098f83eea0719d31787b9c2e141

6 years agoUpdate HttpStatusCode enum (dotnet/corefx#26727)
Caesar Chen [Thu, 1 Feb 2018 17:13:32 +0000 (09:13 -0800)]
Update HttpStatusCode enum (dotnet/corefx#26727)

* Update HttpStatusCode enum

* address feedback

Commit migrated from https://github.com/dotnet/corefx/commit/504781cbfb166c71204b9077c0528623c85cf68c

6 years agoUpdating the x86 HWIntrinsic ref assembly
Tanner Gooding [Tue, 30 Jan 2018 02:24:00 +0000 (18:24 -0800)]
Updating the x86 HWIntrinsic ref assembly

Commit migrated from https://github.com/dotnet/corefx/commit/90027686dc6ee078ae190bfa471962efeab7a123

6 years agoUpdate BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to...
dotnet-maestro-bot [Thu, 1 Feb 2018 04:16:04 +0000 (20:16 -0800)]
Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview2-02431-05, preview2-26201-01, preview2-26201-01, preview2-26131-06, beta-26201-00, beta-26201-00, respectively

Commit migrated from https://github.com/dotnet/corefx/commit/c2c94e2c89c04392fba55e76f97311c3d1a8bf15

6 years agoFix spacing in WebClient tests .csproj
Stephen Toub [Thu, 1 Feb 2018 15:42:50 +0000 (10:42 -0500)]
Fix spacing in WebClient tests .csproj

Commit migrated from https://github.com/dotnet/corefx/commit/c1f7bb9cb3f5490e1477bc13078f074da78c7959

6 years agoWebClient progress monitoring uses ContentLength header (dotnet/corefx#26462)
Douglas-Cleghorn [Thu, 1 Feb 2018 15:41:48 +0000 (08:41 -0700)]
WebClient progress monitoring uses ContentLength header (dotnet/corefx#26462)

* WebClient progress monitoring uses ContentLength header

* Added test for download progress

* Fixed build issue

* Set contentLength to zero if the header is zero

* Fixing WebClient async tests

Commit migrated from https://github.com/dotnet/corefx/commit/3c4115d601335a61d9d170a71bdfb71eb2177beb

6 years agofix dribble tests when client disconnects on bad request (dotnet/corefx#26730)
Geoff Kizer [Thu, 1 Feb 2018 14:21:36 +0000 (06:21 -0800)]
fix dribble tests when client disconnects on bad request (dotnet/corefx#26730)

Fixes dotnet/corefx#26729

Commit migrated from https://github.com/dotnet/corefx/commit/6f5d255a76a192906f692fd3d2b9104ab6aeb2f2

6 years agoMerge pull request dotnet/corefx#26708 from geoffkizer/httpretry
Geoff Kizer [Thu, 1 Feb 2018 04:24:58 +0000 (20:24 -0800)]
Merge pull request dotnet/corefx#26708 from geoffkizer/httpretry

ManagedHandler: implement connection retry logic

Commit migrated from https://github.com/dotnet/corefx/commit/95bfb895707d5756d4b9693286672780f0a6ba02

6 years agoUpdate BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to...
dotnet-maestro-bot [Thu, 1 Feb 2018 03:03:40 +0000 (21:03 -0600)]
Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to prerelease-02430-04, preview2-26130-05, preview2-26130-01, preview2-26129-06, beta-26130-01, beta-26130-01, respectively (master) (dotnet/corefx#26631)

* Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to prerelease-02430-04, preview2-26130-05, preview2-26130-01, preview2-26129-06, beta-26130-01, beta-26130-01, respectively

* Undoing BuildTools update

* Skipping test causing UAP test run to crash for Process

Commit migrated from https://github.com/dotnet/corefx/commit/39742d3f1eac73898ad1b153141419e1f6e866d0