Commit Graph
739 Commits
Author SHA1 Message Date
Eric Erhardt 2053139c9a merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/1c91f96ec67a78a33268181d99a73a736b48c13e
2018-06-15 22:24:40 -05:00
Eric Erhardt 1df03e5bbd Rename dir files to Directory.Build
dir.props => Directory.Build.props
dir.targets => Directory.Build.targets


Commit migrated from https://github.com/dotnet/corefx/commit/204a8dbbc23bfc51d419c93f2f2ddaf50db8020f
2018-06-15 17:07:48 -05:00
Stephen Toub 58c7bbe4b5 Add test for IncompleteAsyncMethod async event (dotnet/corefx#30409)
* Add test for IncompleteAsyncMethod async event

In 2.1, I added an event that's fired when an async method state machine object gets garbage collected without having reached a completed state.  Apparently I never added a test for that behavior.  This does.

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/a04a52a452d4e3176e0c3a0f8d32f1bc1b029d13
2018-06-15 16:04:32 -04:00
Eric Erhardt 70091b9c8b Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ad505eb98c6a887db2d2932fec256d9e4e394169
2018-06-11 17:20:10 -05:00
Stephen Toub 20a51fa3cc Fix task tests to use Assert.Throw instead of Assert.ThrowsAsync
A bunch of asserts in the System.Threading.Tasks tests were nops because they were using Assert.ThrowsAsync and then not awaiting the result.  But they actually should never have been ThrowsAsync in the first place, as they were all validating that exceptions propagated out of the delegate synchronously.  So, I just changed them all to be Assert.Throws instead of Assert.ThrowsAsync.


Commit migrated from https://github.com/dotnet/corefx/commit/52c0125d1f9b8f3de2cb77f1b4acd69a4a17db2a
2018-06-05 09:32:56 -04:00
wtgodbe f38ceb30be Convert all .csproj files in src to SDK-style projects
Commit migrated from https://github.com/dotnet/corefx/commit/91d7e62bbf28094a2b419b87847bcd6a7658564d
2018-05-21 11:53:46 -07:00
Stephen Toub 50f16544b2 Add a few tests for Task.Yield in async methods (dotnet/corefx#28887)
Commit migrated from https://github.com/dotnet/corefx/commit/3b834c49b451fc23e04c9233d9c008e693a4fc9b
2018-04-06 10:27:21 -07:00
Stephen Toub 7ce937d20b Add regression test for Task handling of suppressed ExecutionContext flow (dotnet/corefx#28809)
Commit migrated from https://github.com/dotnet/corefx/commit/61ad2cb0d55785148350af5777a100d5222924ce
2018-04-05 05:48:55 -07:00
Jan Kotas a9ac47e983 Re-enable GetTaskSchedulersForDebugger test (dotnet/corefx#28564)
Fixes dotnet/corefx#28539

Commit migrated from https://github.com/dotnet/corefx/commit/5ffc9b3dd6a3ee0bd128c63e2698617101827d23
2018-03-29 17:41:07 -07:00
dotnet-maestro-bot 993c7e64be Update CoreClr, CoreFx, ProjectNTfs, ProjectNTfsTestILC to preview3-26328-02, preview3-26328-01, beta-26328-00, beta-26328-00, respectively (master) (dotnet/corefx#28536)
* Update CoreClr, CoreFx, ProjectNTfs, ProjectNTfsTestILC to preview3-26328-02, preview3-26328-01, beta-26328-00, beta-26328-00, respectively

* Disable test against active issue


Commit migrated from https://github.com/dotnet/corefx/commit/56d01836ac469b8f158608c9a101afe33465bfbe
2018-03-28 12:25:48 -07:00
Alexander Radchenko a4d0abc32d Fixed netfx System.Threading.Tasks.Tests fails on non-English Windows (dotnet/corefx#28351)
* Fixed netfx System.Threading.Tasks.Tests fails on non-English Windows

* Removed RemoteInvoke. Replaced Contains on pattern match.

* Removed RemoteInvoke. Replaced Contains on pattern match.


Commit migrated from https://github.com/dotnet/corefx/commit/3e5bf71568a4235ccbf91b9e5207bedd34e80d79
2018-03-22 22:38:06 -04:00
Stephen Toub a6932f9f28 Ensure SocketsHttpHandler throws TaskCanceledExceptions instead of OperationCanceledExceptions (dotnet/corefx#28075)
To increase compatibility, as other handlers often throw the derived type instead of the base type, as a side-effect of how they were implemented.

Commit migrated from https://github.com/dotnet/corefx/commit/1f93d2a1c5f3bdeb8c091863236fe2071e5e66f5
2018-03-22 22:11:23 -04:00
Stephen Toub c3b14cf792 Re-enable several task awaiting tests (dotnet/corefx#27940)
Commit migrated from https://github.com/dotnet/corefx/commit/1126fc248e051af44b79ef9f2d736421582f8079
2018-03-10 19:35:44 -05:00
Stephen Toub d3f8c4afbd Add tests for completing tasks in non-default contexts (dotnet/corefx#27819)
Prior to .NET Core 2.1, if a task was awaited in a default context (or if ConfigureAwait(false) was used), and if the task is then completed on a non-default context, the continuation is not inlined by default.  Optimizations added in 2.1 erroneously end up bypassing those checks, leading to continuations getting inlined in places they weren't previously.  This adds regression tests for that behavior.

Commit migrated from https://github.com/dotnet/corefx/commit/4dc401be87a7662132973ac4f43309b3dc534926
2018-03-07 14:20:41 -05:00
Stephen Toub 10ded4a0c4 Add async method tests for decimal caching (dotnet/corefx#27478)
* Add async method tests for decimal caching

* Skip decimal test on netfx


Commit migrated from https://github.com/dotnet/corefx/commit/0eef005290abd2fbf562d04790f778debeaa2967
2018-02-27 23:23:29 -05:00
Wes Haggard fc9b090ef0 Update references assemblies to include private fields for structs
Contributes to https://github.com/dotnet/corefx/issues/6185.


Commit migrated from https://github.com/dotnet/corefx/commit/2e97d43060dfb589907a15dbfef0cc7db6e90546
2018-01-12 08:53:41 -08:00
Jan Kotas 27d98c0776 Delete unnecessary SecurityCritical and SecuritySafeCritical annotations
Commit migrated from https://github.com/dotnet/corefx/commit/0bb106232745aedfc0d0c5a84ff2b244bf190317
2017-11-19 10:37:38 -08:00
Santiago Fernandez Madero b9d768589e Fix System.Data.Odbc configurations for support package and run UpdateVSConfigurations (dotnet/corefx#24752)
* Fixed odbc configurations for compat package

* Run UpdateVSConfigurations

* Remove Default Configurations to help VS... comment from csproj's

* Remove from System.Buffers as well


Commit migrated from https://github.com/dotnet/corefx/commit/bcc59b2e74090cfbcc4d6e7c245c172744e9d46b
2017-10-23 18:24:28 -07:00
Stephen Toub 2e63d7bd35 Use CancellationTokenRegistration.Token in PipeCompletionSource
Shrinks each instance by the size of a reference.


Commit migrated from https://github.com/dotnet/corefx/commit/7e050b7408ec88b07ad81d296a57a14fc644dada
2017-10-06 09:46:12 -04:00
Stephen Toub a78466de40 Expose/test CancellationTokenRegistration.Token
Commit migrated from https://github.com/dotnet/corefx/commit/2ac4caae413b4a734a0df48aee847611577cb021
2017-10-06 08:31:09 -04:00
Koundinya Veluri 0f3a2abcfa Reenable Task stack guard tests (dotnet/corefx#24087)
Fixed by https://github.com/dotnet/coreclr/pull/14015
Reenables tests in and closes https://github.com/dotnet/corefx/issues/23201

Commit migrated from https://github.com/dotnet/corefx/commit/9d02dcf8fb6035a4958e36117b857f80b5436874
2017-10-02 23:55:23 -04:00
Brian Chavez 232a1dfac0 Grammar check - "a [a,e]" rule. (dotnet/corefx#23697)
* Grammar check - "a [a,e]" rule.

* Corrected "a attributes" to "an attribute"


Commit migrated from https://github.com/dotnet/corefx/commit/be75987c628347e1d44bba15c5272ade3dcfa65c
2017-08-31 09:29:39 -04:00
Brian Chavez caeee5a506 XML doc spelling corrections - Q through Z. (dotnet/corefx#23655)
Commit migrated from https://github.com/dotnet/corefx/commit/723c7feed515abbeece068e05fdf2f918a74ca85
2017-08-29 15:40:48 -07:00
Stephen Toub fe21ecf3e3 Disable hanging "stack guard" tests (dotnet/corefx#23339)
Commit migrated from https://github.com/dotnet/corefx/commit/0547375d71a7b0ea8e81e7690e2e6b0ceb6c70e6
2017-08-17 11:14:11 -04:00
Stephen Toub 655d2e22d6 Expose ValueTask from System.Runtime in netcoreapp (dotnet/corefx#22559)
ValueTask will be used/exposed by types in System.Runtime, so it also needs to be exposed from there.  This also requires pulling down a few related types.

Commit migrated from https://github.com/dotnet/corefx/commit/f080986157a9a7edd083ef85a3316f745e5da6ad
2017-07-25 16:03:45 -04:00
Hugh Bellamy 98b18432b7 Move AssertExtensions to Corefx.Private.TestUtilities (dotnet/corefx#21799)
* Move AssertExtensions to Corefx.Private.TestUtilities

* Update csprojs

* Fix Linq.Expressions uapaot build


Commit migrated from https://github.com/dotnet/corefx/commit/7e3b0db2892c56a431f8e99af9cd9381adec385a
2017-07-03 09:27:30 -07:00
Hugh Bellamy 7cdcaf5fc5 Convert Assert.Throws<ArgumentException> to AssertExtensions (dotnet/corefx#21491)
Commit migrated from https://github.com/dotnet/corefx/commit/868f123881e520285ab09600380e38abdd457a06
2017-06-27 21:13:26 -07:00
Stephen Toub 4c19d2b5f6 Fix parameter name in Throws assert
Commit migrated from https://github.com/dotnet/corefx/commit/0620493efbd0156da46627beddd8cc0545be3600
2017-06-23 21:54:18 -04:00
Hugh Bellamy 7cbcd5ed85 Convert most Assert.Throws<ArgumentException> without param name to AssertExtensions (dotnet/corefx#21455)
* Registry

* Collections

* ComponentModel

* Configuration

* Data

* Globalization

* Drawing

* Diagnostics

* IO

* Linq

* Add System.Net param names in tests

* Move ArgumentExceptions in System.Private.Xml to AssertExtensions

* Add System.Reflection.* ArgumentException param names

* Add param names for System.Runtime* ArgumentExceptions

* Add ArgumentException param names to System.Security.*

* Add ArgumentException param names to System.Text.*

* Add param names to ArgumentExceptions in misc projects

* Add System.Threading.* ArgumentException param names

* Fix missing files

* Fixes for unix and netfx

* Fix more failures and revert a IdnaConformance tests to avoid merge conflicts with dotnet/corefx#21463


Commit migrated from https://github.com/dotnet/corefx/commit/59915687bb261efeae70565d0ca8990ac45ceb9c
2017-06-23 12:33:47 -07:00
Hugh Bellamy 6881a911b9 Fix naming
Commit migrated from https://github.com/dotnet/corefx/commit/a303589ca9ad13016dc9b4e8752f5e49ea07715b
2017-06-18 08:04:43 +07:00
Hugh Bellamy 3f9c72749e Fixup instances of [ThreadStatic] in test code
Commit migrated from https://github.com/dotnet/corefx/commit/a51ea85fe292d2c481fdffa33755a6cfa8d26135
2017-06-18 07:08:25 +07:00
Anton Lapounov af72240416 Disable TestEtw and GetTaskSchedulersForDebugger tests for UapAot (dotnet/corefx#21099)
Disable TestEtw test due to issue dotnet/corefx#20592.
Disable GetTaskSchedulersForDebugger tests due to use of reflection.

Commit migrated from https://github.com/dotnet/corefx/commit/2d791e68ff0d1945998b5912a6b7e19cb2f8f26f
2017-06-15 13:48:59 -07:00
Anton Lapounov 7479d4192f Disable 4 AsyncTaskMethodBuilder tests due to a codegen optimization issue. (dotnet/corefx#21002)
Commit migrated from https://github.com/dotnet/corefx/commit/b4d106a1817a4cfddcff786946bd78ce0e7eef77
2017-06-13 18:03:08 -04:00
Anton Lapounov 88e6ab6e20 Fix TaskRtTests.RunFromResult test for uapaot.
Commit migrated from https://github.com/dotnet/corefx/commit/9198e731b631c7741bfeacbeeef1b03dc9d5f88b
2017-06-12 21:35:16 -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
Wes Haggard 3968a70735 Refresh VS Configurations
Commit migrated from https://github.com/dotnet/corefx/commit/39d309a9be077e110bab4f05f4196bad95f0d5b4
2017-05-03 09:36:31 -07:00
Stephen Toub 4015f4de69 Disable several task tests on desktop requiring a newer version
Commit migrated from https://github.com/dotnet/corefx/commit/c0d8b3eae929ce67e0d9c9ae4a54f7e599c8cef2
2017-04-26 12:52:06 -04:00
Stephen Toub 876ce9c240 Expose Task.IsCompletedSuccessfully
Commit migrated from https://github.com/dotnet/corefx/commit/5f7986c01ee2a31abe0b54f89d5f2387c64110e5
2017-04-19 08:07:24 -04:00
Stephen Toub 63e588bc23 Disable System.Threading.Tasks tests for netfx
Commit migrated from https://github.com/dotnet/corefx/commit/87bdbd66dfb5e4568b57b64afb50d5abfe209121
2017-04-18 10:54:53 -04: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
Stephen Toub 39f8010d86 Add TaskFromAsyncTest2 tests to Tasks (dotnet/corefx#17900)
Add the file into the .csproj.  And avoid using Delegate.Begin/EndInvoke in the tests, as those aren't implemented in coreclr.

Commit migrated from https://github.com/dotnet/corefx/commit/59592e0d8c3dd58d6810e162e91bed51d5089bbf
2017-04-04 15:01:30 -07:00
Alex Perovich fc4bb66b9f Fold or rename *.netstandard.cs files (dotnet/corefx#17697)
* Win32.Primitives

* System.Collections.Specialized

* System.Diagnostics.Process

* System.Globalization

* System.Globalization.Calendars

* System.IO

* System.IO.Compression

* System.IO.FileSystem

* System.IO.FileSystem.Watcher

* System.IO.Pipes

* System.Linq.Expressions

* System.Net.Primitives

* System.Net.Requests

* System.Net.Sockets

* System.Net.WebHeaderCollection

* System.ObjectModel

* System.Reflection

* System.Reflection.Emit

* System.Resources.ResourceManager

* System.Runtime

* System.Runtime.Extensions

* System.Runtime.Handles

* System.Runtime.InteropServices

* System.Security.Cryptography.X509Certificates

* System.Text.Encoding

* System.Text.Encoding.CodePages

* System.Threading

* System.Threading.Tasks

* System.Threading.Thread

* System.Threading.Timer

* System.ValueTuple


Commit migrated from https://github.com/dotnet/corefx/commit/023b6bdd6086271cbb6ca932c33d7783f8406062
2017-03-30 17:28:22 -05:00
Alex Ghiondea 943448c3ab Reenable the test for Task.FromAsync now that BinaryCompatibiliy type is gone
Commit migrated from https://github.com/dotnet/corefx/commit/144459666bb24baa28a7ab8690f5f1db04c4d94f
2017-03-22 10:36:23 -07:00
Jose Perez Rodriguez 547819eb31 Updating uapaot baseline files
Commit migrated from https://github.com/dotnet/corefx/commit/1963b65f93973bd7b622203b16765fd25a103fec
2017-03-15 15:27:08 -07:00
Anton Lapounov bf9d13b9fb Add Thread.CurrentPrincipal, Thread.GetDomain, and Thread.GetDomainID for uapaot. (dotnet/corefx#17125)
* Remove from System.Threading.Thread "#if !NETNATIVE" lines that are no longer necessary.
* Add back System.Threading types for uapaot.
* Update baselines.


Commit migrated from https://github.com/dotnet/corefx/commit/e0e59c038a3c39c156ed3c5ba91b74385e3e451c
2017-03-14 19:43:28 -07:00
Jan Kotas 05c1ec3338 Delete obsolete ProjectN/CoreRT files (dotnet/corefx#16957)
* Delete stale ApiCompatBaseline.netcoreapp1.2corert.txt files
* Delete TaskExtensions.CoreRT.cs


Commit migrated from https://github.com/dotnet/corefx/commit/d1e8639de77c0039d19be31835b653f21c7d46bd
2017-03-09 21:54:06 -08:00
Stephen Toub e8929c8db3 Remote stale condition from S.T.Tasks.csproj
Commit migrated from https://github.com/dotnet/corefx/commit/93eb8314e50f9e490abe7c5a46111386967e8ffb
2017-03-09 08:50:20 -05:00
Stephen Toub f811396646 Move TaskExtensions to CoreLib
Commit migrated from https://github.com/dotnet/corefx/commit/4b961b9f64b7657e5c54f8e2eb33ed906c6df602
2017-03-07 14:25:09 -05:00
Peter Kukol 56f54cd794 Fix tests that assumed GC refs could become collectable in the middle of a method. (dotnet/corefx#16553)
* Fix tests that assumed GC refs were collected in the middle of a method.

* Review feedback.


Commit migrated from https://github.com/dotnet/corefx/commit/da228a5f5990d2fcee0d8ccf62f708f01c97eb76
2017-03-01 07:56:13 -05:00
Jon Hanna aa4b36ebfa Fix several typos (dotnet/corefx#16264)
* Fix several typos

coment → comment
rangecheck → range check
testcase → test case
deffer → defer
everytime → every time
whitespaces → whitespace (whitespace is uncountable)
white space → whitespace
white spaces → whitespace
the the → the
a → a
nametest → name test
scaned → scanned
and and → and
undecision → indecision
are no whitespace → is no whitespace
Whidbey casing
Everett casing
unkown → unknown
messsage → message
mesage → message
mesasage → message
publically → publicly (publically is attested but questionable).
exceptionto → exception to
mutatable → mutable
implemention → implementation
hadnt → hadn't
couldnt → couldn't
wouldnt → wouldn't
wont → won't
isntead → instead
preocessor → processor
particural → particular
interations → iterations
enterying → entering
stoppped → stopped
stoped → stopped
verication → verification
compuatation → computation
revisisted → revisited
partioner → partitioner
lock'ed → locked
table'd → table would
hashtable'ed → hashtabled (still coining, but tabled is analogous)
intialize → initialize
calcuate → calculate
perfom → perform
performr → perform
matthing → matching
corect → correct
thorw → throw
supress → suppress
reqeust → request
mutliple → multiple
ot → to
trival → trivial
upto → up to
specfices → specifies
patttern → pattern
descrepancy → discrepancy
explict → explicit
implict → implicit
usign → using
non-sensical → nonsensical
contination → continuation
producs → products
childred → children
parametr → parameter
approriate → appropriate
insted → instead
expection → exception
successsfully → successfully
funtion → function
unqiue → unique
apparant → apparent
expception → exception
conatined → contained
apssed → passed
propogate → propagate
cutoms → custom
currrent → current
curent → current
concurent → concurrent
coplted → completed
unexcepted → Unexpected (where the latter seems more appropriate)
to to → to
abd → and
refence → reference
particiant → participant
cuurrent → current
extratc → extract
cparticipant → participant
ehich → which
choosen → chosen
mske → make
alread → already
aquire → acquire
droppping → dropping
intial → initial
tru → true
aprticipant → participant
excption → exception
sempahore → semaphore
fileds → fields
threashold → threshold
duting → during
didnt → didn't
atribute → attribute
serliazation → serialization
localy → locally
channge → change
prperties → properties
attrbute → attribute
sentinal → sentinel
shoukd → should
existant → existent
commnent → comment
expeted → expected
propert → property
commnet → comment
datat → data
ther → the
mach → match
inhertiance → inheritance
convience → convenience
completley → completely
otheriwse → otherwise
actuall → actual
inefficent → inefficient
defalut → default
comparsion → comparison
charcters → characters
postion → position
aleady → already
charater → character
incosistent → inconsistent
seperate → separate
veify → verify
currentlly → currently
corect → correct
betwwen → between
omiting → omitting
readr → reader
compae → compare
allways → always
thown → thrown
with with → with
usecase → use case
avare → aware
lexem → lexeme
grammer → grammar
oposite → opposite
overrided → overridden
everithig → everything
chages → changes
memeber → member
proerties → properties
identifer → identifier
doesnot → does not
deriaved → derived
varialble → variable

* defered -> deferred

* Revert changes within clrcompression.

* Revert underreach → under-reach

* Fix casing broken while fixing spelling.

* Use type name instead of "Diagnostic sources"


Commit migrated from https://github.com/dotnet/corefx/commit/f0ccd9742065ee2aa296448fe3dd38ef6ff77af9
2017-02-17 10:31:00 -08:00