Commit Graph
447 Commits
Author SHA1 Message Date
Viktor 194fe08d90 Disable ApartmentState on UAP
Commit migrated from https://github.com/dotnet/corefx/commit/a33d75aec0daff5e6a043352d443ce6270f6660c
2019-01-24 13:05:06 +01:00
Jan Kotas 4069deba28 Allow setting Thread culture before thread start (dotnet/corefx#33576)
Fixes dotnet/corefx#33574


Commit migrated from https://github.com/dotnet/corefx/commit/0cec1456227512233144b8484d6516f323423f7c
2018-11-18 22:21:50 -08:00
Wes Haggard 954fb511b3 Rename AssemblyKey properties to StrongNameKeyId as part of arcade work
Commit migrated from https://github.com/dotnet/corefx/commit/7edd861bf2dd59ecdb4284e0fd291d7458198a9d
2018-10-30 15:14:01 -07:00
Viktor ff1cee711b Automatically copy runtime config files if executable
Commit migrated from https://github.com/dotnet/corefx/commit/09768a9f0e54d326bbaceec81c8b6a56e322147e
2018-10-16 10:47:41 +02:00
Jan Kotas 005c064038 Mark tests exercising CoreLib with TestRuntime tag (dotnet/corefx#32720)
Commit migrated from https://github.com/dotnet/corefx/commit/6b299367382b28ec0b9592bf5b37db48fb02cb67
2018-10-09 12:51:04 -07:00
Sam Neirinck 68b24b8b69 Cleanup MSDN URL's (dotnet/corefx#32663)
* Fix non-https msdn links

* Additional HTTPS treatment


Commit migrated from https://github.com/dotnet/corefx/commit/0bfc4f3cf62f6fc29162ad5b1b89acc14124a375
2018-10-09 11:59:36 -07:00
Morgan Brown abc0943945 Build managed code and packages for WebAssembly/netcoreappaot (dotnet/corefx#32045)
Adds support for a WebAssembly netcoreappaot configuration for building managed libraries and packages. This is enough to produce a package of libraries that CoreRT's WebAssembly implementation can consume.


Commit migrated from https://github.com/dotnet/corefx/commit/2b868f80c307a514dfafb7eb166dad3dbc2ed26b
2018-09-11 21:57:52 -07:00
Viktor Hofer b32eca7f74 Fix apartment tests for netfx due to differnet file extension
Commit migrated from https://github.com/dotnet/corefx/commit/317ddd17e185af36888d487a4cda935470e2186b
2018-09-07 22:30:34 +02:00
Wes Haggard 6dcf8b8bfb Update the configurations properties in projects
Commit migrated from https://github.com/dotnet/corefx/commit/fea86686c620242ce7e1911418f2fba7c4d52d4d
2018-08-29 09:45:04 -07:00
Viktor Hofer 49586efb0d Add uap test leg to CI
Disable/Enable tests for clean uap CI leg


Commit migrated from https://github.com/dotnet/corefx/commit/c54d4a20c315730cd76fb7688c15d0a85837f3ce
2018-08-23 20:16:11 +02:00
Viktor Hofer b998fc821e Xunit 2.4 test changes
Commit migrated from https://github.com/dotnet/corefx/commit/591f0b5ba2c0ddcdad1a326eb327936cb2dd40d8
2018-08-23 19:55:27 +02:00
Viktor Hofer c527cd334d Make BaseIntermediateOutputPath project specific
Set BaseIntermediateOutputPath and IntermediateOutputPath accordingly in
proj/depprojs and add TargetFramework* props for various configurations.


Commit migrated from https://github.com/dotnet/corefx/commit/3d223d3c55e07c110b5ebb0bc7ecb225e168da15
2018-08-22 14:05:29 +02:00
Morgan Brown 5851b3de9a Add netcoreappaot target group (dotnet/corefx#30980)
Changes to add a new netcoreappaot target group, similar to netcoreapp but it builds against the .NET Native core libraries. A couple of libraries, such as System.Linq.Expressions, have aot-specific definitions that are enabled for netcoreappaot.

Commit migrated from https://github.com/dotnet/corefx/commit/3333166174e54ae9435c31e0a68a6784e9aacc41
2018-08-21 18:19:59 -07:00
Koundinya Veluri 97acd4ff10 Test a couple of fixes for apartment state issues
Depends on https://github.com/dotnet/coreclr/pull/19384

Closes https://github.com/dotnet/coreclr/issues/17822
Closes https://github.com/dotnet/coreclr/issues/17787
Closes https://github.com/dotnet/coreclr/issues/19225


Commit migrated from https://github.com/dotnet/corefx/commit/363ebdbcc8bd83e3a5663fe2e6baa6aa9e5b4564
2018-08-13 14:34:04 -07:00
Eric Erhardt 21b7a52139 Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/0343b37275d50fa44b8db91bd9ed8364f89600fc
2018-07-05 14:06:19 -05:00
Anirudh Agnihotry 9bd761e0a5 Lazy Initialization of Thread.CurrentPrincipal and implementing GetThreadPrincipal (dotnet/corefx#30765)
Commit migrated from https://github.com/dotnet/corefx/commit/6fb57a4bfe4504b60b3af769798b96ba15e6c842
2018-07-04 11:18:31 +02:00
Eric Erhardt 8b6d5baf20 Change .csproj to new Configurations property
Change .sln to use the managed C# project system GUID.


Commit migrated from https://github.com/dotnet/corefx/commit/e05508a62d28f4807f85abe9cb7adf8382f792b4
2018-06-28 17:49:22 -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
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
Koundinya Veluri e340456c5d Fix test for Thread constructor taking stack size (dotnet/corefx#29798)
* Fix test for Thread constructor taking stack size

Leave some pages worth of buffer when allocating stack space. See https://github.com/dotnet/coreclr/issues/17170.

* Fix comment

* Fix comment


Commit migrated from https://github.com/dotnet/corefx/commit/0c9ecd37fd9c9404205f195bb9ce74cce7d4fd8d
2018-05-21 15:09:03 -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
Koundinya Veluri d01c92a7f0 Fix thread constructor test on newer kernels (dotnet/corefx#28613)
Works around and closes https://github.com/dotnet/coreclr/issues/17170
- Works around an issue on linux-arm64 where pthread_create appears to reserve less stack space than requested without failing, and limits the max reserved stack size to the ulimit-configued value, leading to seg fault when the requested size of stack space is attempted to be used
- Fixed to write every page in the stack region that is being checked, to guarantee hitting the guard page in case of failure. The JIT's stack probe for stackalloc should cover this, https://github.com/dotnet/coreclr/issues/16827 details why that was not happening, in any case this test is not intended to test stack probing behavior, so this change makes the test a bit stronger in what it actually intends to test.

Commit migrated from https://github.com/dotnet/corefx/commit/d73eb9141ea4b8ca526881e7bbaebe5b36db0fe1
2018-04-01 04:26:11 -07:00
Wes Haggard f8801500fa Normalize project configurations (dotnet/corefx#28396)
Commit migrated from https://github.com/dotnet/corefx/commit/29b20cab377ea807eddcbc2dc5832d8d17b0bb00
2018-03-22 21:11:43 -07:00
Simon Nattress 52c8e150c1 Update UAP System.Private.CoreLib to unblock UAP builds (dotnet/corefx#27805)
* Update UAP targeting pack

To fix the flow from CoreCLR and CoreFX into TFS, update the targeting pack with a version of System.Private.CoreLib that has an updated signature for Stream.WriteAsync. This should be sufficient to re-enable uapaot builds so we can get a new set of uap packages.

* Revert "Disable uapaot builds on several projects"

This reverts commit dotnet/corefx@ebe14686a8.



Commit migrated from https://github.com/dotnet/corefx/commit/671b10bb21668d8432f066a4307c269a98a66ea8
2018-03-08 16:40:00 -08:00
Eric St. John 98c0015605 Update SLNs and projects to be in sync with configurations
Commit migrated from https://github.com/dotnet/corefx/commit/8ce7e620e1b5001be002598f4d10d4becdd77a49
2018-03-08 08:25:31 -08:00
Jan Kotas d0978b6a66 Delete unnecesary workarounds (dotnet/corefx#27663)
Commit migrated from https://github.com/dotnet/corefx/commit/f1ba98dbb0612f08091e047eadde8688f79dd1ce
2018-03-02 18:31:51 -05:00
Stephen Toub b09ec74165 Disable uapaot builds on several projects
This was needed to get through the change of Stream.WriteAsync's return type from Task to ValueTask.


Commit migrated from https://github.com/dotnet/corefx/commit/ebe14686a89d26d1d34d359f7a636d6e9a36a624
2018-03-02 09:56:25 -08:00
Simon Nattress 0aa965eb67 Re-enable UAP builds (dotnet/corefx#27531)
* Build uapaot System.Numerics.Vectors

With `Vector<T>` now residing in System.Private.CoreLib, directly reference System.Private.Corelib instead of contracts just like netcoreapp does.

Add uapaot flavor since System.Private.CoreLib has a different strong name key on that platform.

* Make EnsureExtendedPrefixOverMaxPath available to UAP

Add the helper method `System.IO.PathInternal.EnsureExtendedPrefixOverMaxPath` to Common\src\System\IO\PathInternal.Windows.cs. It was previously not visible to UAP since  Common\src\CoreLib\System\IO\PathInternal.Windows.cs is not included in UAP compilation.

* Keep SocketsHttpHandler out of UAP builds

SocketsHttpHandler is not supported in uap and is currently leaking into UAP builds since they've been disabled for a few weeks. Adjust the contract so it's not available to UAP, and clean the implementation assembly so SocketsHttpHandler internals don't leak out into HttpClientHandler.Core.cs.

* Fix GetAddrInfoExSupportsOverlapped UAP build break

`System.Net.NameResolutionPal.GetAddrInfoExSupportsOverlapped` uses LoadLibraryExW which is not compatible with UAP (which only supports LoadLibrary of DLLs within a container). Refactor the helper so UAP returns false.

* Revert "Disable UAP legs per dotnet/corefx#26802 (dotnet/corefx#26822)"

This reverts commit dotnet/corefx@120dce456a.

* Revert "Disable UAP configurations in all configurations build"

This reverts commit dotnet/corefx@2202b4fd49.

* Revert "Disable UAP official builds (dotnet/corefx#26871)"

This reverts commit dotnet/corefx@ef79caf14c.

- Baseline the ApiCompat and GenFacades failures in System.Runtime.Extensions and System.Threading.ThreadPool.
- Adjust naming of files to match branch conventions
- Fix up some configuration issues with uap packaging. The CoreFX.Private.TestUtilities packaging needs updated build tools which can map between uwp6.0 and netstandard2.0.
- ifdef out Thread.GetCurrentProcessorId until we get a new System.Private.CoreLib.


Commit migrated from https://github.com/dotnet/corefx/commit/c9cdfba45e62eeac28ef554d8bbdfdd620a0fd15
2018-03-01 17:59:35 -08:00
Jan Kotas 1087b7a871 Expose Thread.GetCurrentProcessorId() (dotnet/corefx#27541)
Fixes dotnet/corefx#16767


Commit migrated from https://github.com/dotnet/corefx/commit/e57157a7d89d26d0b0b1f2f1c509bf7a9da16453
2018-02-28 23:21:21 -08:00
Koundinya Veluri 29228249fc Improve thread name and start tests (dotnet/corefx#27287)
Improve thread name and start tests

Commit migrated from https://github.com/dotnet/corefx/commit/9b552adf5b0cee0b4842a45710a58771dcc696a3
2018-02-21 13:50:46 -08:00
Dan Moseley 4d1408aa50 Disable GetApartmentState related tests for UAPAOT (dotnet/corefx#26255)
Commit migrated from https://github.com/dotnet/corefx/commit/e8f960452234b7c2c0fbcd8b636aa2ad55fa676e
2018-01-10 20:19:42 -08:00
Anirudh Agnihotry 0874a9a391 Tests For STA/MTA Attribute For Main Method (dotnet/corefx#26001)
Tests For STA\MTA Main Thread Attribute

Commit migrated from https://github.com/dotnet/corefx/commit/7b6c8ab54b7a22614ad1cb782bf6b813bea85fa9
2018-01-02 16:05:25 -08:00
Egor Bogatov 0c4731e2b4 Mark several tests with [SkipOnTargetFramework(TargetFrameworkMonikers.Mono)] (dotnet/corefx#25113)
* skip some tests on mono

* mark more tests with SkipOnMono attribute

* Mark more tests with [SkipOnMono]

* remove SkipOnMono from SqlErrorCollectionTest

* add comments


Commit migrated from https://github.com/dotnet/corefx/commit/25f80ade543903293ae08ac091cffd457a7a9ad4
2017-11-12 22:42:47 -05: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
Tarek Mahmoud Sayed 3765a6069b Moving PlatformDetection to Corefx.Private.TestUtilities assembly (dotnet/corefx#23109)
* Moving PlatformDetection to Corefx.Private.TestUtilities assembly

The purpose of this change is to clean up all test projects instead of including the PlatformDetection code inside every test project, we’ll have it in the Corefx.Private.TestUtilities.
I have refactored the PlatformDetection to split the different implementation of Windows and Linux. If we need to do more refactoring there we can do it later as needed.

* Fix Linux BB

* Update the xunit package reference

* Fix wrong condition on one of the tests

* Update the ConditionalFact/Theory to use Type as a parameter


Commit migrated from https://github.com/dotnet/corefx/commit/878e2fcf5a9f1068015e5fada9231088663e3490
2017-08-10 22:37:36 -07:00
Santiago Fernandez Madero 503b9b1412 Revert "Have the uap version of RemoteExecutorTestBase.RemoteInvoke wait in a… (dotnet/corefx#21780)" (dotnet/corefx#22069)
This reverts commit dotnet/corefx@066ad32f13.

Commit migrated from https://github.com/dotnet/corefx/commit/6223f37edf834a3be374f196cda27e6fa91889bd
2017-07-10 18:17:53 -07:00
Koundinya Veluri 3dc57bb832 Have the uap version of RemoteExecutorTestBase.RemoteInvoke wait in a… (dotnet/corefx#21780)
* Have the uap version of RemoteExecutorTestBase.RemoteInvoke wait in a background thread

Fixes dotnet/corefx#21275

* Fix build

* Address feedback

* Fix build

* Fix test

* Fix test

* Fix something


Commit migrated from https://github.com/dotnet/corefx/commit/066ad32f1352fe5325998b997b93a0e0cb54cf58
2017-07-10 09:20:22 -07: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 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
Tijoy Tom Kalathiparambil 5299afeec0 Disable some thread test since the required methods
are not implemented in AOT yet.
See dotnet/corefx#20766


Commit migrated from https://github.com/dotnet/corefx/commit/9c86ff9d3e6f795ecd74bbabbf2109e7d6d9b045
2017-06-06 22:53:24 -07:00
Jan Kotas 4eecc51ea2 Delete ThreadAbortException from CoreFX (dotnet/corefx#20659)
dotnet/corefx#16229

Commit migrated from https://github.com/dotnet/corefx/commit/6e155d5e3b63f3d4b07b3464160d2a0bdef04578
2017-06-02 20:26:22 -07:00
Koundinya Veluri 11e4bc5323 Use monotonic clock for measuring time in sleep test (dotnet/corefx#20639)
* Use monotonic clock for measuring time in sleep test

Fixes dotnet/corefx#20173

* Address feedback


Commit migrated from https://github.com/dotnet/corefx/commit/fc7720842d8d1ae7c496b2d08e23f98f7de9c722
2017-06-02 15:10:52 -04:00
Eric StJohn eb4fbea10f Merge pull request dotnet/corefx#20322 from ericstj/updateConfigurations
Update configurations

Commit migrated from https://github.com/dotnet/corefx/commit/2a1751d92d3124c3a34ba28839f1a624cec1e0a9
2017-05-26 12:28:01 -07:00
Morgan Brown c748507f03 ISerializable cleanup (dotnet/corefx#20220)
* Changes to throw PlatformNotSupportedException from ISerializable.GetObjectData and serialization constructors on non-serializable types. Also removes private serialization constructors and some unneeded code that was used to support serializing non-serializable types. A few tests testing GetObjectData implementations are also removed.

* Address code review comments.

* Change exceptions' GetObjectData to just call base rather than throw. This makes them behave consistently with exceptions that didn't override GetObjectData.


Commit migrated from https://github.com/dotnet/corefx/commit/a82f54bd51e22ec3eb14eb5d8f572f022becb8e3
2017-05-25 12:38:09 -07:00
Eric St. John af1d155bf6 Remove help VS comments
Many CSProjs included the comment
`<!-- Help VS understand available configurations -->`

These aren't handled well by the tooling that rewrites projects and weren't providing much value.

Remove them.


Commit migrated from https://github.com/dotnet/corefx/commit/5ba948d13e3177c2c7075b6b00791e574bfa0860
2017-05-25 11:10:27 -07:00
danmosemsft ce492417e6 change to inrange to see value
Commit migrated from https://github.com/dotnet/corefx/commit/964009e9a23f7176dd24299da9aca430d23be2d3
2017-05-23 08:49:03 -07:00
Gaurav Khanna f167b0de93 Merge pull request dotnet/corefx#19842 from ericstj/incrementVersions
Increment versions post 2.0

Commit migrated from https://github.com/dotnet/corefx/commit/45d30e6bdf44d4a0e55df5a6064e8275cdf14d25
2017-05-17 12:03:29 -07:00
Morgan Brown 975ad3c685 Scale back [Serializable] CoreFX types (dotnet/corefx#19742)
* Remove SerializableAttribute from many CoreFX types that will not be serializable.

* Removes serialization tests for types that are no longer serializable and fixes serializing a couple of types. Includes marking some internal serializable types as public so that they'll be reflectible with .NET Native.

* Remove unneeded pragmas

* Update based on review comments


Commit migrated from https://github.com/dotnet/corefx/commit/6dd451f51451a7d0ceea6104b51bd17005e9a0e6
2017-05-16 18:16:29 -04: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
danmosemsft e7ef2ed843 Fix threading test for nano
Commit migrated from https://github.com/dotnet/corefx/commit/3977680c7af89e055ccd5544fd6d096c1f1e4bd4
2017-05-02 21:11:00 -07:00