Commit Graph
596 Commits
Author SHA1 Message Date
Viktor Hofer 177aa49924 Merge pull request dotnet/corefx#32726 from dotnet-maestro-bot/master-UpdateDependencies
Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-03311-01, preview1-27011-01, preview1-27011-01, preview1-27011-01, beta-27011-00, beta-27011-00, respectively (master)

Commit migrated from https://github.com/dotnet/corefx/commit/bed8a614c02bc24488a3208b80a5553f0e43b3d7
2018-10-17 02:13:43 +02:00
Viktor 993a0c2ef2 Change test data file paths to respect Content TargetPath
Commit migrated from https://github.com/dotnet/corefx/commit/fdc9de8db8785331749a985501fd05e2cc3673db
2018-10-17 01:04:44 +02:00
Smartis 88ac22a168 Improve bad_mac_address Message (dotnet/corefx#32824)
* Remove unnecessary comma

* Change net_bad_mac_address string and modify call

* Adding missing spaces in comments

* Extend Test for checking if errorMsg contains address


Commit migrated from https://github.com/dotnet/corefx/commit/8c976fd31df56cb61f9a3f7cf6e4b6d1f9acdf51
2018-10-16 09:31:06 -04:00
Tomas Weinfurt 25c1e11d5b fix parsing for TCP info on Linux (dotnet/corefx#32816)
* fix parsing for TCP info

* use proper v6connections variable

* update failing tests

* remove extra space


Commit migrated from https://github.com/dotnet/corefx/commit/45bb5421dfd01bb3c9b555a0933e1c87b19493c5
2018-10-15 19:43:08 -07:00
Smartis c36d85cf4e Adding FormatException to PhysicalAddress.Parse() (dotnet/corefx#32724)
* Adding FormatException to PhysicalAddress.Parse()

* Fixing Parse() and adding tests

* Skip Parse_Invalid test on netfx where the fix isn't present


Commit migrated from https://github.com/dotnet/corefx/commit/312303d85d6587c199ea80605d04c1bb1f82c637
2018-10-13 11:08:35 -04:00
Tomas Weinfurt b906cd9b5f check OperationStatus for known interfaces on OSX (dotnet/corefx#32696)
Commit migrated from https://github.com/dotnet/corefx/commit/103f967f31ad9d7635864a72677ff8ab5abb3d59
2018-10-08 13:44:35 -07:00
Tomas Weinfurt eff8d9f179 get operational status and multicast support for osx (dotnet/corefx#32444)
* get operational status and multicast support for osx

* add code to detect link status

* split check if ioctl() result abnd ifm_status value


Commit migrated from https://github.com/dotnet/corefx/commit/cceef2a0d61b47b077a3279eed51b052974759cd
2018-10-05 16:13:45 -07:00
Santiago Fernandez Madero 5267216c37 Fix assert failing when getting network interfaces (dotnet/corefx#32394)
* Fix assert failing when getting network interfaces

* PR Feedback


Commit migrated from https://github.com/dotnet/corefx/commit/cae2180e1443e1ace51f7498e48fd84d95550358
2018-09-25 18:11:13 -04:00
Santiago Fernandez Madero 3e699db55a Fix NetworkInterfaces exception when forwarding conf file is not available in linux system (dotnet/corefx#32350)
* Fix NetworkInterfaces exception when forwarding conf file is not available

* PR Feedback

* More PR Feedback, refactor code


Commit migrated from https://github.com/dotnet/corefx/commit/238932e03c32cd59d33f6713b0d0de60178158b4
2018-09-20 17:15:13 -07:00
Grant 6898a1f9a2 Change calls from string.IndexOf to string.Contains (CoreFX) (dotnet/corefx#32249)
* Update call sites

* More call sites

* Another callsite

* More call sites

* CR fixes - revert src/Common/src/CoreLib/*

* Spurious fix

* Revert string.Contains where platform may not be NetCore21

* nit

* More reverts

* More reverts

* More reverts

* Revert

* Remove comments

* Revert


Commit migrated from https://github.com/dotnet/corefx/commit/6ffca612323448f1488a6c63b86b69611b4286d9
2018-09-13 15:20:39 -07:00
Eric Erhardt 812e1643b6 Run UpdateVSConfigurations on the current code.
Commit migrated from https://github.com/dotnet/corefx/commit/1a4b8a2ba40d39abe3c3888caede4e46218e7099
2018-07-05 14:12:38 -05:00
Eric Erhardt 779486884e Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ec546de620c5248f3662d6aaca989ed382b86b6b
2018-06-28 21:28:41 -05: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
Tomas Weinfurt 06735f436e build stub assemblies on FreeBSD from *UnknownUnix* (dotnet/corefx#30663)
* build stub assemblies on FreeBSD from *UnknownUnix*

* feedback from review. move RegisterNetworkChange to common file

* use netcoreapp-Unix for FreeBSD until we have real implementation


Commit migrated from https://github.com/dotnet/corefx/commit/fc1574ecf3d0b9a9035bc04abae465f27c510dab
2018-06-27 06:28:54 -07: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
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
Marco Rossignoli 4110b40d54 Replace files with CoreLib mirror (<30% differences) (dotnet/corefx#29433)
* remove duplicates

* remove unused Interop.GetFullPathNameW.cs

* revert TupleExtensions.cs for netfx incompatibility

* replace coreclr merged

* replace constants conflicts


Commit migrated from https://github.com/dotnet/corefx/commit/5168f541d4def7c54e490a685ff5dc0e3f90e91a
2018-05-02 06:51:46 -07:00
Dan Friedman 33591df321 Clean dead code System.Net* (dotnet/corefx#29302)
* Clean dead code in System.Net

* More cleaning

* Clean dead code for HttpListener

* Clean dead code for Mail

* Clean dead code in Http

* Clean dead code for NetworkInformation

* Clean more dead code

* Various fixes

* Build fix

* Restore field

* var -> string


Commit migrated from https://github.com/dotnet/corefx/commit/71cc1ae8ba02b7b71878cb69a50c667c8ed0f50f
2018-05-01 16:49:12 -07:00
Marco Rossignoli 528e91dabf Replace identical files with CoreLib mirror (dotnet/corefx#28593)
Commit migrated from https://github.com/dotnet/corefx/commit/5041dbb272ae05b360db538cf62fc2847277fd7e
2018-04-17 16:05:44 -07:00
Stephen Toub f8e6f41b81 Clear initlocals in a bunch of assemblies (dotnet/corefx#26993)
* Clear initlocals in a bunch of assemblies

Sets
```XML
<ILLinkClearInitLocals>true</ILLinkClearInitLocals>
```
for the assemblies:
    - System.IO.FileSystem
    - System.IO.Pipes
    - System.Memory
    - System.Net.Http
    - System.Net.Http.WinHttpHandler
    - System.Net.NameResolution
    - System.Net.NetworkInformation
    - System.Net.Primitives
    - System.Net.Requests
    - System.Net.Security
    - System.Net.Sockets
    - System.Net.WebSockets
    - System.Net.WebSockets.Client
    - System.Net.WebSockets.WebSocketsProtocol
    - System.Private.Uri
    - System.Runtime
    - System.Runtime.Extensions

Eventually we'd ideally set the flag for the whole repo; these are just the ones I audited thus far.  In a few cases I had to make code changes to adapt, where the code was expecting stackallocs to be cleared.  I also looked at a few other projects (System.Collections, System.Runtime.Numerics) where there were more significant dependencies on clearing and I decided to leave those for later.

* Disable ILLinkClearInitLocals running on Unix until it works there


Commit migrated from https://github.com/dotnet/corefx/commit/f0a032e4a1c8a848574a5db3e69e8a6fa0aae91e
2018-02-13 06:30:25 -05:00
Stephen Toub 6c680513f5 Fix more new T[0] to be Array.Empty<T>() (dotnet/corefx#27042)
We've done several passes through the repo in the past.  More cases have snuck in since then.

Commit migrated from https://github.com/dotnet/corefx/commit/a127f01141ff4ffe2224da9ff63a1b5233ee5f06
2018-02-11 12:18:33 -05:00
Ben Adams 4eb4f1943c 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
2018-02-01 12:40:08 -05:00
Caesar Chen 78e99f001d Fix System.Net.NetworkInformation.NetworkChange deadlock (dotnet/corefx#26259)
User code can subscribe to the NetworkAvailabilityChanged event. If a Network Address changed event get triggered while the user code is unsubscribing from the NetworkAvailabilityChanged event, there will be a deadlock.

The deadlock can happen because two threads are holding two different locks for AddressChangeListener and AvailabilityChangeListener, and they are waiting for each other to release its lock first. The fix is using a global lock to replace two locks, so that we don’t allow operations on AddressChangeListener and AvailabilityChangeListener happen at the same time.

Without fixing this, users can frequently see the deadlock when they put their computer to sleep, re-awaken it, then call the code that unsubscribes from NetworkAvailabilityChanged event.

This deadlock is only specific to Windows implementation. For Unix implementations (Linux & OSX), their current implementation is to use a global lock object to protect both NetworkAddressChangedEventHandler & NetworkAvailabilityChangedEventHandler.

This issue was reported in internal bug 162830.

Commit migrated from https://github.com/dotnet/corefx/commit/0628ddac3c88042c9a0e997350bd2346e68c5f07
2018-01-20 10:29:06 -08:00
Jan Kotas e6c28ba3b1 Cleanup CodeContracts annotations (dotnet/corefx#26324)
Commit migrated from https://github.com/dotnet/corefx/commit/a3e4e241c7b7c33750258082969287b9cf45d757
2018-01-14 14:19:41 -05:00
Ahson Khan 901bcc277c General code clean up of System.Memory (dotnet/corefx#25958)
* Use explicit type instead of var where type can't be inferred easily.

* Removing unnecessary use of 'unsafe' and generic type specifiers.

* Remove leftover unnecessary generic specifiers.


Commit migrated from https://github.com/dotnet/corefx/commit/b29814cd75aac9ba4b478fe92ee97cf657331a6d
2017-12-15 22:19:43 -08:00
Lakshmi Priya Sekar 10e8666606 Merge pull request dotnet/corefx#25888 from tmds/fix_network_address_change
Linux: Fix NetworkAddressChange NullReferenceException on AddressChange when no Availability subscribers

Commit migrated from https://github.com/dotnet/corefx/commit/f308155dfe9753c85b9f963552588b1740d7f155
2017-12-14 13:10:33 -08:00
Lakshmi Priya Sekar affe62a1ee Merge pull request dotnet/corefx#25793 from tmds/interface_physicaladdr
UnixNetworkInterface: when no physical address, use PhysicalAddress.None and ensure index is set

Commit migrated from https://github.com/dotnet/corefx/commit/6ba001c6f2f5a5fe8a81db04464b5b587cff9ff5
2017-12-13 11:34:47 -08:00
Tom Deseyn 0e32883754 Linux: Fix NetworkAddressChange NullReferenceException on AddressChange when no Availability subscribers
Commit migrated from https://github.com/dotnet/corefx/commit/d37a56878be68097ab3729f648cd5101e1af923b
2017-12-13 14:28:09 +01:00
Josh Free 5cc96e3f01 Re-enable additional tests on WSL (dotnet/corefx#25807)
* Re-enable DriveInfo test on Windows Subsystem for Linux

https://github.com/dotnet/corefx/issues/11570

* Re-enable additional tests on WSL

Related https://github.com/Microsoft/BashOnWindows/issues/1011 and https://github.com/Microsoft/BashOnWindows/issues/308

* correct xunit Facts

* Disable some network tests on WSL

Disable some network tests on WindowsSubsystemForLinux due to https://github.com/dotnet/corefx/issues/15513


Commit migrated from https://github.com/dotnet/corefx/commit/1e955510bf4f95963dc9276539870ddbf7319988
2017-12-11 17:39:27 -08:00
Tom Deseyn 04903078e0 UnixNetworkInterface: when no physical address, use PhysicalAddress.None and ensure index is set
Commit migrated from https://github.com/dotnet/corefx/commit/55bd035e75b79f82c1e1d9bbb4da4ea6c8b5a1ce
2017-12-08 15:16:26 +01:00
Stano Peťko eca1c5f528 Remove dead code from System.Net.NetworkInformation (dotnet/corefx#24800)
* Deleted dead code from System.Net.NetworkInformation.

* Returned back constructors, used in other platforms.

* Removed unused strings.

* Returned back strings used in other platforms.


Commit migrated from https://github.com/dotnet/corefx/commit/71188fac3f15e09bc156e92715d5995fd100906d
2017-10-23 08:46:18 -04:00
Santiago Fernandez Madero 504fca1427 Add BinPlaceConfiguration for test projects to have a working directory per BuildConfiguration (dotnet/corefx#23633)
* With this change we will have the next behavior when building/running tests:

-When building the tests we will still bin place the test assets to the OutputDirectory (corefx\bin\OSGroup.Configuration\TestProject\TargetGroup/)

-When running the tests we will bin place the tests assets to this new TestPath which will be the TestPath. This new path will be the test's working directory where we will bin place the RunTests.cmd and necessary dependencies in tests.targets. Also the testResults.xml will be found here after the test execution.

-TestPath is set to be bin/tests/<TestProject>/<BuildConfiguration>/ (i.e corefx\bin\tests\System.Collections.Immutable.Tests\netcoreapp-Windows_NT-Debug-x64) in dir.props

-This TestPath will be added to the BinPlaceDir in FrameworkTargeting.targets when BinPlaceTest is set to true. Then in the BinPlaceFiles target the test assets will be hardlinked to the TestPath.

This will isolate every test execution per build configuration and will allow people to run the same test project for all of the supported configurations on the same repo without having to clean the repo.

Commit migrated from https://github.com/dotnet/corefx/commit/664ca9508a03483a7fb2714b55b9cba885593d90
2017-09-05 13:30:09 -07:00
Brian Chavez 88875187b0 XML doc spelling corrections - D through H. 🚿 (dotnet/corefx#23638)
Commit migrated from https://github.com/dotnet/corefx/commit/a27929935d2782cdc3e7be21653e8c4530274c6f
2017-08-29 17:10:01 -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
Caesar Chen 77c7b4f16c Removing unused UAP code and SmtpClient HostName workaround (dotnet/corefx#21670)
Commit migrated from https://github.com/dotnet/corefx/commit/86d9e8fc0296d19779bc7f70127026a24fc75e4e
2017-07-04 13:46:48 -07:00
Cristian Pop 23a2417388 Tracking ETW UAP test failures against a single issue. Global mutex is not supported in UAP. (dotnet/corefx#21732)
* Removing Global mutex bug ID. Tracking ETW UAP test failures against a single issue.
* Disabling EKU tests for UAP.

Commit migrated from https://github.com/dotnet/corefx/commit/12632fd50d02c1b1934cac13edc8225304ac91a5
2017-06-29 16:22:14 -07:00
Jeremy Kuhne 6563c7348e Add converter from IEnumerable to TheoryData (dotnet/corefx#21671)
* Add converter from IEnumerable to TheoryData

Manipulating test input data in IEnumerable format is
desirable, but a bit awkward to get into IEnumerable<object[]> format that [Theory] expects.

Add test project to new test project. :)  Change a test in
System.IO.FileSystem to theory with new extension.

* Fix performance test project

* Run the UpdateConfigurations target

* Add netfx reference


Commit migrated from https://github.com/dotnet/corefx/commit/94b2a85c837a536096af1a7bc3812feef45e9ecb
2017-06-28 21:15:33 -07:00
Caesar Chen 4027d167b0 re-enable tests, and delete some dead code
Commit migrated from https://github.com/dotnet/corefx/commit/8edc3ff791064399edac0cfe0ba4613dcbf282cb
2017-06-26 10:43:12 -07:00
Caesar Chen 32838485a2 UWP work for S.N.NetworkInformation (dotnet/corefx#21486)
* fix dotnet/corefx#9675, dotnet/corefx#17992

* fix dotnet/corefx#19314, dotnet/corefx#17993

* remove WinRT code


Commit migrated from https://github.com/dotnet/corefx/commit/82fa4236eee5636ea1b095169084b4418cb9d25f
2017-06-23 22:20:31 -04:00
Eric Mellino 1c4407435c Return Linux NetworkInterface speed as bits per second, not megabits. (dotnet/corefx#21272)
* Continue allowing -1 to be returned, as well.

Commit migrated from https://github.com/dotnet/corefx/commit/ac09ecdba927b8c16adbde5ad976c0d99008a4e9
2017-06-20 21:16:39 -07:00
Santiago Fernandez Madero 3c68f97b74 Fix System.Net.NetworkInformation.Tests for uap (dotnet/corefx#21104)
* Fix System.Net.NetworkInformation.Tests for uap


Commit migrated from https://github.com/dotnet/corefx/commit/e4f007095e482fa53a9a0998f9164ad15ffacf3c
2017-06-15 16:45:17 -07:00
Atsushi Kanamori c2aac731c1 Final set of ILC test failure "fixes"...
...until the next one...




Commit migrated from https://github.com/dotnet/corefx/commit/3581457c3957f403f3f96234c1589145718400bf
2017-06-01 14:24:37 -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
sepidehMS 4d8b9a732b Disable some System.Net.* tests for ILC
Commit migrated from https://github.com/dotnet/corefx/commit/e7c05a3ad68ddeaf32b44004d33a1533c175dc1b
2017-05-23 12:59:24 -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
Jason Lin 996a786159 Enable most corefx tests for Bash on Windows
Many corefx tests are skipped when running on Bash on Windows. As of Win10 Creators Update, most of these skipped tests now pass, so they can now be enabled.


Commit migrated from https://github.com/dotnet/corefx/commit/cf3c7d5a3283da40e8a2849e8776e23c7292fb41
2017-05-14 21:02:27 -07:00
Jiayi Li ab9698db27 Disable failed tests for 6 issues. (dotnet/corefx#19464)
Commit migrated from https://github.com/dotnet/corefx/commit/5efe9f60ffe252496ca6cf98cb94e29b7d088b49
2017-05-08 02:43:56 -07:00
Alex Perovich 609d36b44e Skip hanging test in S.Net.NetworkInformation on aot (dotnet/corefx#19315)
This change skips the
NetworkInterface_LoopbackInterfaceIndex_MatchesReceivedPackets test on
aot

Commit migrated from https://github.com/dotnet/corefx/commit/caa6e47ef8824eef1f0b54f80a331700b12fa940
2017-05-03 19:14:22 -05: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
Eric St. John 1a839a01f5 Add manual roots for ILLink
These represent dynamic dependencies that are not caught by ILLink.

See individual files for details on the dependencies.


Commit migrated from https://github.com/dotnet/corefx/commit/2277db969616a5ad4fd9f4a8118a3b4030ff62d3
2017-04-03 10:23:59 -07:00