Commit Graph
378 Commits
Author SHA1 Message Date
Anirudh Agnihotry 04c6f66b04 Fix tests for path validation changes on Windows And Unix (dotnet/corefx#25788)
Commit migrated from https://github.com/dotnet/corefx/commit/fc0e922bb1d5e92414acb6869d8a7aa3502f6b1c
2017-12-08 14:41:55 -08:00
Stephen Toub e492fe23ba Disable failing tests after path validation updates
Commit migrated from https://github.com/dotnet/corefx/commit/c0817aec1c3fbf9ee8bdbba286edbf1c9c3c64c4
2017-12-03 12:08:32 -05:00
Jeremy Kuhne 3307889b0c Fast file enumeration for Windows (dotnet/corefx#25426)
* Fast file enumeration for Windows

Implements an optimized, low allocation replacement for file enumeration on Windows. In preliminary tests this improves performance at least two fold, particularly for recursive searches.
Removes aggressive filter validation.
Copies and cleans up filename matching code from FileSystemWatcher.
Add length setter for ValueStringBuilder.
Remove Unix .. check for enumerable.

Commit migrated from https://github.com/dotnet/corefx/commit/eb0d4388c339288a589bdd7f5e0c9fcd61da4362
2017-11-30 15:46:56 -08:00
Jan Kotas 9b5f569108 Misc cleanup (dotnet/corefx#25343)
- Remove unnecessary SetErrorCode wrapper from IsolatedStorageException
- Delete unnecessary FriendAccessAllowed attribute
- Delete unused files

Commit migrated from https://github.com/dotnet/corefx/commit/02a26f8f417967e31bab8d96605d3d8846154e8a
2017-11-19 06:59:45 -05:00
Viktor Hofer fcc00e81f3 Make corefx exceptions serializable and add typeforwards (dotnet/corefx#24427)
* Add serializable attribute and typeforward and adding serialization impl
* Expose ZLibException in impl assembly
* Remove deserialization negative tests
* Adding tests for exceptions
* Adding SqlError data to base exception data table
* System Data Facade
* Add netfx471 blob diffs for Hashtable and ListDictionary
* Build Microsoft.NETCore.App.deps.json after manual shims
* Disable currently failing uap/uapaot tests because of shim assembly load errors


Commit migrated from https://github.com/dotnet/corefx/commit/e3f74deb999571d3f34a6b2b8011caebcf06dbfc
2017-10-27 18:00:52 +02:00
Dan Moseley b27ba97af5 Rename IsWinRT to IsInAppContainer (dotnet/corefx#23935)
* Rename IsWinRT to IsInAppContainer

* Grep error


Commit migrated from https://github.com/dotnet/corefx/commit/8d51233795da222041c23d33b1eb44bbe458d0eb
2017-09-11 02:57:28 -04:00
John Doe bb6abf5000 Typo (dotnet/corefx#23644)
* typo

* typo

* Typo

* Typo


Commit migrated from https://github.com/dotnet/corefx/commit/40368b2aa9ade8e5f495bfb6f474cd16561abe59
2017-08-30 08:48:29 -04:00
Eric St. John e047f03838 Fix errors with new CSC due to missing comma between attributes
Commit migrated from https://github.com/dotnet/corefx/commit/535828b1423795a71f0b17e0c9d00e99021deed5
2017-08-25 14:05:48 -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
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
Santiago Fernandez Madero e8c0db60b4 Update buildtools and extensions and do tests cleanup for new attributes behavior (dotnet/corefx#20333)
* Update buildtools and extensions and do tests cleanup for new attributes behavior


Commit migrated from https://github.com/dotnet/corefx/commit/bc73a9b7ca2a644efd9fc3cb51dde3bc3726ecd7
2017-05-26 02:13:52 -05: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
Santiago Fernandez Madero c65dd7a4bd Test attributes cleanup for Uap now that Uap flag includes UapAot (dotnet/corefx#20108)
* Update xunit extensions to unify TargetFrameworkMonikers.Uap to include UapAot

Commit migrated from https://github.com/dotnet/corefx/commit/652d12bf31606eeef8fe8b9a7bf1cc7af06f6352
2017-05-22 15:10:24 -07:00
Eric St. John 67a1a83adf Update configurations
Commit migrated from https://github.com/dotnet/corefx/commit/a152026c63c03dda2e470b780ecb4b3aa9671e11
2017-05-19 10:17:08 -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
Jeremy Kuhne 74e195410e Remove IsoStorage lock from UAP and enable tests (dotnet/corefx#19840)
Removing the random directory logic when running on WinRT as
it wasn't used before and has no benefit. Additionally taking
a global lock isn't possible on WinRT.

This also enables tests for IsolatedStorage on UAP. Also update
skip for unit tests on desktop.

Issues dotnet/corefx#19227, dotnet/corefx#18202

Commit migrated from https://github.com/dotnet/corefx/commit/6c7f3ac27caad2b7c510199767c9f6a9099f550e
2017-05-16 14:57:05 -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
Morgan Brown d8a4ca60a8 Remove unneeded Serializable attributes (dotnet/corefx#19577)
Removes unneeded Serializable attributes from enums and delegates. They
can be serialized without attributes and this will remove noise from
future serialization changes.

Commit migrated from https://github.com/dotnet/corefx/commit/2f096d410befd4b348bf0cdf9344cf2221869581
2017-05-09 20:07:36 -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
Stephen Toub 06f29338cd Merge pull request dotnet/corefx#19402 from Jiayili1/DisableFailedTestsFor18265
Disable failed tests for issue 18265.'

Commit migrated from https://github.com/dotnet/corefx/commit/1333256d1370c664bc19e15af99df8d01b936ef6
2017-05-05 09:22:13 -04:00
Stephen Toub 3c0af297cd Merge pull request dotnet/corefx#19401 from Jiayili1/DisableFailedTestsFor18268
Disable failed tests for issue 18268.

Commit migrated from https://github.com/dotnet/corefx/commit/e1d6c78a0517fe7dbda86983ebe0f9c595ed4855
2017-05-05 09:21:38 -04:00
FAREAST\v-lijiay beee506479 Disable failed tests for issue 18265.'
Commit migrated from https://github.com/dotnet/corefx/commit/953c5a64d4ed732cf6ff1b40529fa01203af2715
2017-05-05 02:45:25 -07:00
FAREAST\v-lijiay 118594f132 Disable failed tests for issue 18268.
Commit migrated from https://github.com/dotnet/corefx/commit/0c09a3231d3ca6ac4abd2e85c524d537c0323109
2017-05-05 02:29:36 -07:00
FAREAST\v-lijiay da512fb0c8 Disable failed tests for issue 18269.
Commit migrated from https://github.com/dotnet/corefx/commit/e30c4f764b2c275ac2dcda152efa9c8af7f5bf2d
2017-05-05 02:16:28 -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
Santiago Fernandez Madero 8d30308627 Fix IsolatedStorage difference in behavior and fix tests (dotnet/corefx#18927)
* Fix IsolatedStorage difference in behavior and fix tests


Commit migrated from https://github.com/dotnet/corefx/commit/60f8785e2d6ad2bdbd9e1a14237ff08538370465
2017-04-26 15:50:39 -04:00
Ian Hays 850d6a0762 Allow previously not supported GetStore overloads that pass null.
The GetStore overloads other than the IsoStorageScope throw PSNE for any input. This commit modifies them to check for null inputs and treat the method as equivalent to a 1-arg GetStore in that case.


Commit migrated from https://github.com/dotnet/corefx/commit/c3d45325711586e53bde3ce4cf5f845167f11f76
2017-04-25 15:46:53 -07:00
Tijoy Tom Kalathiparambil 95f65bc534 Disable System.IO.IsolatedStorage test for uap-aot.
Disabling since these tests need to be
run from an AppContainer which the infrastructure
do not support.


Commit migrated from https://github.com/dotnet/corefx/commit/901a85ea58de17e0f335ff1f1e1fb5ceac9618d9
2017-04-25 12:50:05 -07:00
Viktor Hofer b38842b91e CrossCompilation IsolatedStorage (dotnet/corefx#18647)
* Cross Compilation IsolatedStorage

* Indentation

* updated configs

* seperation of platforms

* Cleaned dependencies, updated tests

* Targets reversed

* removed directory exists check for unix

* code cleanup


Commit migrated from https://github.com/dotnet/corefx/commit/3c71b7c0e7bb784e48a092d5c8a5ce05251a3606
2017-04-22 11:02:16 +02:00
danmosemsft 45cf788a41 Remove active issue
Commit migrated from https://github.com/dotnet/corefx/commit/5a75a6164fc12e6dcb113787b85c89329b3310f6
2017-04-18 16:19:14 -07:00
Daniel Harvey 252cdc5e95 Bulk updates of tests for AssertExtensions (dotnet/corefx#18491)
Bulk update to AssertExtensions.Throws for AOT support. This doesn't disable Assert.Throws.

Commit migrated from https://github.com/dotnet/corefx/commit/b43b4df2e0e2182154bb0f425cb4a61bc1269828
2017-04-18 09:52:02 -07:00
Stephen Toub 232f406514 Change FileSystemInfo.CreationTime fall back on Unix
If birth time isn't available, CreationTime currently falls back to `default(DateTimeOffset)`.  This changes it to instead fall back to the last access (st_atime) or status change time (st_ctime), whichever is older.


Commit migrated from https://github.com/dotnet/corefx/commit/c13adf13144fd5e5b88593481d1c129ade8fa558
2017-04-15 07:14:13 -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 62d639ba8a Merge pull request dotnet/corefx#17973 from alexperovich/isoStorage
Fix System.IO.IsolatedStorage.GetCreationTimeTests on Fedora

Commit migrated from https://github.com/dotnet/corefx/commit/842e8b523dc68d554ebb4bdbb0d973ebf49dc7de
2017-04-06 23:12:41 -04:00
Alex Perovich 588f3d471c Fix GetCreationTime test on Fedora
The actual expected result is the local time version of
default(DateTimeOffset)

Fixes dotnet/corefx#12539


Commit migrated from https://github.com/dotnet/corefx/commit/c40d8a779de43bdbbdb9f1877dd2061eab3104e7
2017-04-06 21:54:06 +00:00
Atsushi Kanamori 9bf3edd393 NS2.0 - Complete System.IO.IsolatedStorage namespace (dotnet/corefx#17965)
* NS2.0 - Complete System.IO.IsolatedStorage namespace

IsolatedStorageFile:

  Quota/MaximumSize
    long.MaxValue (as desktop does when there's no quota)


  UsedSize/CurrentSize:
    PNSE (there's no mechanism in this implementation to
      track usage, and I'm assuming we don't plan to
      add one...)

    I'd also be open to returning 0 from both of these -
    they're only useful for checking if you're running
    up against a quota.

  AvailableFreeSpace
    Quota - UsedSpace  (just to stay in sync with desktop)


IsolatedStorageFileStream:

  SafeFileHandle
    throw ISFException (as in desktop - this is now allows)

  Flush(bool)
  IsAsync
    Obvious delegation.

* NS2.0 - Complete System.IO.IsolatedStorage namespace

IsolatedStorageFile:

  Quota/MaximumSize
    long.MaxValue (as desktop does when there's no quota)


  UsedSize/CurrentSize:
    PNSE (there's no mechanism in this implementation to
      track usage, and I'm assuming we don't plan to
      add one...)

    I'd also be open to returning 0 from both of these -
    they're only useful for checking if you're running
    up against a quota.

  AvailableFreeSpace
    Quota - UsedSpace  (just to stay in sync with desktop)


IsolatedStorageFileStream:

  SafeFileHandle
    throw ISFException (as in desktop - this is now allows)

  Flush(bool)
  IsAsync
    Obvious delegation.


Commit migrated from https://github.com/dotnet/corefx/commit/88c289e553652e2dfb343a169452e18aad959490
2017-04-05 15:25:37 -07:00
Jose Perez Rodriguez dcae7a65c2 Re-authoring the UAP package to make sure we have the right set of assemblies
Commit migrated from https://github.com/dotnet/corefx/commit/a6bff0070eb427f15fd4bd9ae0dfc622bc4fe19b
2017-03-28 16:29:53 -07:00
Dan Moseley 0893aea8f5 Some PNSE messages (dotnet/corefx#17471)
* PNSE for S.Threading.Thread

* PNSE for S.S.Permissions

* PNSE for M.W.Registry

* PNSE for S.R.Extensions and S.IO.FS

* Fix UAP build

* PNSE for IsolatedStorage

* msg

* Remove dead COR_E_PLATFORMNOTSUPPORTED


Commit migrated from https://github.com/dotnet/corefx/commit/1fa2fe8a9307b7b0d3901f989a2f69f5027d949c
2017-03-24 12:58:51 -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
Stephen Toub de785e76d4 Use nameof in a few more MemberDatas (dotnet/corefx#17102)
Search and replace through the repo, after noticing a few of these.

Commit migrated from https://github.com/dotnet/corefx/commit/3a64d4a5cf1f233d423e98531a6650443f449f51
2017-03-14 08:58:40 -07:00
Dan Moseley 9d47195e42 Enable Pinvoke checker and baseline violations (dotnet/corefx#16704)
* Fix UWP Pinvoke checker condition

* analyzer baselines

* Remove redundant local define

* Remove redundant CA lines

* Special case Registry

* Fix BlockReflectionAttribute

* Replace NETNATIVE with uap define

* baselines

* Disable Pinvoke scan on specific projects

* Disable BlockReflectionAttribute on ilproj

* Revive 2 baselines

* Disable UWP validation on SQlClient

* Convert some defines to `uwp`

* Fix S.N.Primitives baseline

* Remove dead baselines

* Clean up NET_NATIVE defines

* Remove FEATURE_CORECLR except from shared sources

* Change Threading.Thread defines to just uapaot

* Fix comment

* Fix comment 2

* Change serialization uap defines to uapaot

* Rename EnableWinRT to UWPCompatible

* Fix UAP build for Console

* Fix uap condition in XML csproj

* Fix condition in XmlSerializer project

* Replace netcore50

* Remove dead #if

* Redundant console condition

* Redundant console condition2

* Trim baseline

* Revert Console baseline to pre UAP

* Fix MemoryMappedFiles uap build

* Fix S.Linq.Expressions build for UAP by temporarily disabling it

* Fix S.N.Sockets build for uap

* No plans to put SQLClient in UWP

* Fix RuntimeInformation build

* Fix MemoryMappedFiles build for Unix

* Add UWPCompatible to all netstandard versions

* Add EnablePinvokeAnalyzer to disable Pinvoke checking entirely for some reason

* Remove dead System.Xml.XmlSerializer.Tests.settings.targets

* Fix interop services build

* Remove last uap/uapaot define in Xml tests

* PInvoke check doc

* Fix PInvoke casing

* PInvoke file is case sensitive

* Remove unnecessary references to uapaot from projects that don't have uapaot configs

* Remove unnecessary uapaot from S.R.I.RI

* Replace UWPCompatible for TargetGroup in csproj conditions

* Reverse FileSystem edit as not ready to build for UWP


Commit migrated from https://github.com/dotnet/corefx/commit/b1865ea0847a7a86baefe8378b772ecf0b785681
2017-03-09 21:08:39 -08:00
Wes Haggard bef5635826 Set EnableWinRT property in configuration system. (dotnet/corefx#16423)
EnableWinRT is set based on netcore50/uap target frameworks.

Removed mscorlib.WinRt-Facade project which is no longer needed.

Commit migrated from https://github.com/dotnet/corefx/commit/db6e8c950c3c7c35034cf8fd6346cdf0c198f238
2017-02-23 16:37:58 -08:00
Dan Moseley 44ac2dd747 Remove dead string resources (dotnet/corefx#16284)
Commit migrated from https://github.com/dotnet/corefx/commit/6b4423f47d5048b4c1437aaefe87859b258c89b7
2017-02-18 06:01:59 -08:00
Wes Haggard eb1f0e0530 Remove all .builds files under pkg/ref/src/tests library folders
Commit migrated from https://github.com/dotnet/corefx/commit/b60cbe5a2edb5ef3b88a7738507822d13d125d62
2017-02-15 16:32:03 -08:00
Sepideh Khoshnood 50fea0be10 Merge pull request dotnet/corefx#15932 from sepidehMS/PlatformSpecificTests
Review all PlatformSpecific tests to ensure test coverage

Commit migrated from https://github.com/dotnet/corefx/commit/6451bed4d4a667d9c05a41c0843504d020d283ab
2017-02-08 15:53:46 -08:00
Tarek Mahmoud Sayed addda8630e Enable tests to compile with netstandard (dotnet/corefx#15956)
* Enable tests to compile with netstandard

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

The changes include some fixes to compile teh sources too.

* Fix System.Collections.Immutable

* update src configuration

* remove netstandard17 defines

* Split netcoreapp code to its own files

* Remove 17 from the test class name


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

Commit migrated from https://github.com/dotnet/corefx/commit/afaaf450d1869992dcf4f51c627f16145cf9c974
2017-02-08 10:39:37 -08:00
sepidehMS e3d734c19d Add comments to PlatformSpecific tests
Commit migrated from https://github.com/dotnet/corefx/commit/493cb79ff4976479be5cc7c6f1fe2d5d9b710425
2017-02-07 15:46:26 -08:00