Commit Graph
74 Commits
Author SHA1 Message Date
Alexander Köplinger 83b52cdc31 [iOS/tvOS] Remove P/Invokes to libproc from System.Private.CoreLib (#63934)
They aren't allowed by Apple when submitting to the App Store.

Finishes https://github.com/dotnet/runtime/issues/61265
2022-01-18 23:13:58 +01:00
b4d16b7ac9 Disable several failing tests on iOSSimulator arm64 (#61826)
* Disable several failing tests on iOSSimulator arm64

A few tests popped up as failures on the rolling build due to parts of System.Diagnostics.Process throwing PNSE.  Disabled the functional tests from running on arm64 as mlaunch can't detect the return code.

* Update src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs

Co-authored-by: Steve Pfister <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
2021-11-19 12:45:18 +01:00
7d58d72894 [libraries] Skip test suites crashing on CI for iOS/tvOS/MacCatalyst (#57208)
* [MacCatalyst][Libraries] Reenable MacCatalyst x64 crashing test suites

* [MacCatalyst][Libraries] Reenable MacCatalyst arm64 crashing test suites

* Temporarily enable MacCatalyst arm64 lane

* Readd consistently crashing suites to iOS tvOS MacCatalyst skips

* Address crashes and PNSE failures on iOS MacCatalyst

* Temporarily bump timeout for tvOS

* fix typo

* Skip more crashed suites

* Undo temporary changes and Add ActiveIssue

* Skip more crashing suites

* Skip iOS.Simulator.Aot.Test flake on MacCatalyst CI

* Add a couple crashing suites

* Remove sample skip in tests.proj as it doesnt do anything

* Add another flakey crashed test for MacCatalyst

* Skip System.Xml.Xsl.XslCompiledTransformApi on MacCatalyst

* Temporarily remove test suite skips and enable arm64 lanes and bump lane timeout to evaluate crashes

* Reenable a test that was fixed

* Update Microsoft.DotNet.Helix.Sdk

Fixes an issue with mismatched dotnet SDK versions we're hitting in runtime-staging on mobile platforms (see https://github.com/dotnet/arcade/pull/7788)

* [iOS] Skip ValidAccessLevelCombinations ReadWriteExecute for iOSSimulator arm64

* Skip failing test suites

* Extend trampoline bump to iOS tvOS MacCatalyst

* Fixup typo

* Fix MonoAOTCompiler typo

* Bump trampolines for osxlike lanes

* Add active issues for failing tests

* Remove ActiveIssue that was fixed

* Add IsIanaIdTest skip

* Bump trampolines even higher

* Address feedback

* Fix typo

* Undo runtime-staging temporary changes and cleanup test skips

* Fix path typo

* Skip iOS sample

* Add new activeIssue and skip flakey Android test crash

* Skip functional tests crashing with exit code 0

Co-authored-by: Mitchell Hwang <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
2021-09-03 13:22:20 -04:00
Mitchell Hwang b1ae7b935c [iOS/tvOS] Skip System.Security.Cryptography.Pkcs PNSE, System.Diagnostics.Tracing and System.Runtime.Extensions test (#58210) 2021-08-27 13:42:01 +02:00
591e96bff1 Give tvOS a special value for Personal/MyDocuments (#57508)
* Use a different Personal folder on tvOS, and a test that it works
* Set temp path to a valid location
* Add NSTemporaryDirectory interop function and supporting cast

Co-authored-by: Steve Pfister <[email protected]>
Co-authored-by: Adeel Mujahid <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
2021-08-24 14:34:00 -04:00
84ca07fc23 [libraries] Update System.Runtime.Extensions tests for iOS,MacCatalyst,tvOS (#57210)
* [libraries] Update AppDomainTests for iOS,MacCatalyst,tvOS

* Update skip reasons

* Add MacCatalyst to Case Insensitive and remove ActiveIssues

* Replace ActiveIssue with ConditionalTheory based on RemoteExecutor

* Fix test for iOS/tvOS/Catalyst

* Skip UserName test on iOS tvOS

Co-authored-by: Mitchell Hwang <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
2021-08-13 22:54:28 -06:00
Steve MacLean d66e9361f5 Apple Silicon reenable 49568 (#52202) 2021-06-09 20:27:31 -04:00
5297337e5b [iOS][libraries] Skip failing iOS tests with ActiveIssues and proj level skips (#51491)
In effort to assess the state of the iOS library tests, a number of tests will be skipped

Test suites that crash, hang, or have a significant number of failures (mostly 20+ failing unique test methods) are skipped on at the `tests.proj` level. Otherwise, `[ActiveIssue]` attributes have been attached to either the individual test methods that fail or the entire class if the whole test class fails. Any pre-existing `ActiveIssue` attribute associated with iOS had been reassessed to either remain or be closed.

A few test suites have been skipped because they fail with some form of `PlatformNotSupportedException`. `[SkipOnPlatform]` attributes are attached to the failing test methods.

All of the Issues can be tracked at https://github.com/dotnet/runtime/projects/48#column-9236436

The ActiveIssues and `tests.proj` exclusions have been tested on https://github.com/dotnet/runtime/pull/49917 as well.

-----------
This PR makes the following changes in the following files:
`src/libraries/System.IO.Ports/tests/System.IO.Ports.Tests.csproj` - Removed `$(NetCoreAppCurrent)-iOS` from target frameworks as it is stated to currently only supported on Windows.

`src/libraries/tests.proj` - Update the test suites that need to be skipped at the project level, reducing the number and categorizing as a skip due to PNSE, a skip due to numerous failures, and a skip due to the suite crashing.

The remaining files changed are either:
`[ActiveIssue("<issue-url>", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]`
`[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")]`

Co-authored-by: Mitchell Hwang <[email protected]>
Co-authored-by: Tammy Qiu <[email protected]>
2021-05-12 17:40:55 +02:00
Kareem ZedanandJan Kotas b08a97afb8 Task/use get last p invoke error (#52212)
* replacing GetLastWin32Error with GetLastPInvokeError in remaining assemblies

* replace GetLastWin32Error with GetLastPInvokeError in assemblies outside system.private.corelib

* Apply suggestions from code review

Co-authored-by: Jan Kotas <[email protected]>
2021-05-09 12:42:21 -07:00
Steve Pfister bc5b227c9f Remove openssl dependency from android (#49282) 2021-03-23 00:17:12 -04:00
Steve MacLean e867be6cab Enable macOS-arm64 libraries tests on runtime-staging rolling builds (#49445)
* Disable failing Apple Silicon Libraries tests

-  Use tests.proj to disable catastrophically failing libraries tests
-  Add ActiveIssues where XUnit didn't crash

* Enable CoreCLR lib tests for Apple Silicon in Runtime-Staging
2021-03-18 14:03:08 -04:00
Steve MacLean 6ce5878104 Fix inverted active issues (#49265) 2021-03-06 14:10:29 -08:00
Steve MacLean e422345323 Apple Silicon platform detection (#49155)
* Add Apple Silicon PlatformDetection

* Disable OSVersion_ValidVersion_OSX on Apple Silicon

* Update docs
2021-03-04 17:28:07 -05:00
Santiago Fernandez MaderoandEirik Tsarpalis 0798485568 Add server core testing (#41701)
* Add server core testing to Windows x64

* Add server core testing

* Use 20h1 queue instead

* Remove runtime testing until we get more capacity on 20H1 queue

* Use 2004 image

* Skip tests on Server core

* PR Feedback and fix build

* Disable more server core tests

* Disable more tests on Server Core

* Attempt fixing failing process test in server core

address feedback

* Fix PlatformDetection.IsInContainer for windows and feedback from Eirik's change

* PR Feedback

* Don't run server core on PRs yet until we get more capacity

Co-authored-by: Eirik Tsarpalis <[email protected]>
2020-10-01 14:35:25 -07:00
2544c744d2 Add Environment.ProcessPath (#42768)
Fixes #40862

Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Ryan Lucia <[email protected]>
2020-10-01 07:21:30 -07:00
Adam Sitnik efafca9bd8 use new OperatingSystem APIs in test projects that target NetCoreAppCurrent only (#40522)
* use new OperatingSystem APIs in test projects that target NetCoreAppCurrent only

* use `||` instead of `|`
2020-08-10 17:50:42 +02:00
Adam Sitnik 3ea278dae3 Remove new platform members from OSPlatform (#40373)
* Remove new platform members from OSPlatform

* remove IsOSPlatformEarlierThan and IsOSPlatformOrLater methods

* remove unused resource and dependency

* delegate RuntimeInformation.IsOSPlatform to call OperatingSystem.IsOSPlatform. it won't compile now as the new guards have not been merged yet (#40457)

* remove OSPlatform.Browser and it's usage
2020-08-07 12:18:34 +02:00
Marek SafarandAlexander Köplinger 5ad9b0e233 Add Browser specific PersistedFiles implementation (#39350)
* Add Browser specific PersistedFiles implementation

Simplified the implementation removes dependency on several native calls
which all return only default values.

Co-authored-by: Alexander Köplinger <[email protected]>
2020-08-04 21:00:13 -05:00
927ced16e8 [wasm] Addressing System.Runtime.Extensions failures (#38996)
Co-authored-by: Mitchell Hwang <[email protected]>
Co-authored-by: Steve Pfister <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
2020-07-13 22:30:36 +02:00
Alexander Köplinger fff0ec3c92 Add space after "Other" in OperatingSystem.VersionString (#39180)
Follow-up to https://github.com/dotnet/runtime/pull/39130
2020-07-13 20:56:53 +02:00
Alexander Köplinger 9bd7dd7c62 Fix creating OperatingSystem with PlatformID.Other (#39130)
Creating an OperatingSystem with PlatformID.Other would result in an exception about an unexpected enum value.
https://github.com/dotnet/runtime/pull/38790 was missing some tests that verified this behavior.
2020-07-11 03:49:23 +02:00
Stephen Toub ea2b09beea Add and use Environment.ProcessId (#38908)
* Add and use Environment.ProcessId

* Split newly added tests
2020-07-09 18:09:05 -04:00
Stephen Toub 6072e4d3a7 Update license headers (#38793) 2020-07-08 09:23:11 -04:00
Mitchell HwangandMitchell Hwang 480c49b241 [libraries] Add ConditionalFact to wasm failing tests (#37822)
* [libraries] Add IsThreadingSupported

* [libraries] Add IsThreadingSupported attribute to failing wasm tests

* [libraries] Add IsObdcNotAvailableAndThreadingSupported property to DependencyCheckTest

* [libraries] Include system namespace in RedactedLogValueIntegrationTest and fix DependencyCheckTest ConditionalFact

* [libraries] Revert System.Console IsThreadingSupported changes

* [libraries] Remove IsThreadingSupported attribute from EncodingCodePages

Co-authored-by: Mitchell Hwang <[email protected]>
2020-06-17 13:48:00 -04:00
Alexander Köplinger da10ba8ca7 Use ConditionalFact/Theory for skipping RemoteExecutor on unsupported platforms (#37479)
RemoteExecutor doesn't work on platforms that can't spawn processes like iOS/Android/WebAssembly.
2020-06-09 12:40:44 +02:00
Eric Erhardt 2d4acbde20 Return the correct OSVersion on OSX like systems. (#36029)
* Return the correct OSVersion on OSX like systems.

Fix #34977

* Rename files to not have Linux when they aren't Linux specific.

* Assert OSVersion Build number is valid.

* PR feedback

Move interop code to Common\src\Interop.
Specify the full path to libobjc.dylib.
Fix objc_msgSend_stret for ARM64.

* Specify full path to libproc.dylib.

Fix #24095
2020-05-11 09:47:01 -05:00
Santiago Fernandez Madero 110282c71b Update all issues in source code to point to runtime (#32349) 2020-02-18 15:49:23 -08:00
Dan MoseleyandJan Kotas 2c6ec17019 Fix Environment.UserInteractive on Windows (#1234)
* Implement Environment.UserInteractive

* typo

* rename

* Revert M.Win32.SE

* CR feedback

* CR feedback:

* typo

* Fix test

* GUOI declaration

* Another typo!

* Fix build break

* Update src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems

Co-Authored-By: Jan Kotas <[email protected]>

* Update src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems

Co-Authored-By: Jan Kotas <[email protected]>

* Update src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems

Co-Authored-By: Jan Kotas <[email protected]>

* CR feedback

Co-authored-by: Jan Kotas <[email protected]>
2020-01-03 23:11:04 -08:00
Viktor Hofer 9b88ca1d72 Remove UAP target (dotnet/corefx#41759)
* Remove Uap target

* Remove RemoteInvokeForUap wrapper calls entirely

* Harvest S.D.SqlClient on UWP

* Disable UWP PInvoke analyzer

* Enable WindowsRuntime* tests on netcoreapp

Commit migrated from https://github.com/dotnet/corefx/commit/3b6ec2ba944fb72f921f95b99b6ebf2e7bb3dc5a
2019-10-17 15:04:39 +02:00
Stephen Toub 7ff3a1100a Reduce RemoteInvoke usage in tests (dotnet/corefx#41741)
Many of our RemoteInvokes are there purely because of needing to change the current thread culture but on UAP that actually impacting the whole process.  Until that's addressed, we can at least avoid the RemoteInvoke on all platforms other than UAP. There are also some RemoteInvokes that can be avoided by just serializing all of the (small number of) tests in a test assembly. And there's some additional cleanup to be done as well around not explicitly returning an exit code unless required.

This helps measurably with test performance.  Consider the System.ComponentModel.Annotations test suite.  On my machine, prior to these changes, it took ~25 seconds; after these changes, it takes ~0.3. It helps even more when running against a checked runtime, where all of our test costs are magnified.  With a checked runtime, prior to these changes, it takes ~196 seconds; after these changes, it takes ~2.5 seconds.  This should help measurably with CI time in coreclr.

Commit migrated from https://github.com/dotnet/corefx/commit/cd18bafbabf7fe47601f6f790d157409034a2477
2019-10-15 12:09:06 -04:00
dotnet-maestro[bot] 8e0feec09d [master] Update dependencies from dotnet/coreclr (dotnet/corefx#41089)
* Update dependencies from https://github.com/dotnet/coreclr build 20190912.7

- Microsoft.NET.Sdk.IL - 5.0.0-alpha1.19462.7
- Microsoft.NETCore.ILAsm - 5.0.0-alpha1.19462.7
- Microsoft.NETCore.Runtime.CoreCLR - 5.0.0-alpha1.19462.7

* Fix Environment.WorkingSet tests for coreclr update


Commit migrated from https://github.com/dotnet/corefx/commit/a3dbe06e55084c12450288db4ea12a1e7fd36144
2019-09-13 19:53:32 +00:00
Stephen Toub bf9054c38c Re-enable xUnit1025 (duplicate InlineData) (dotnet/corefx#39737)
Commit migrated from https://github.com/dotnet/corefx/commit/47d96f89df41ce18d3ba77b38007ec68f7f66fc6
2019-07-25 10:45:20 +02:00
Dan Moseley 9de0c8dafa Fix tests to match exception output change (dotnet/corefx#38145)
Commit migrated from https://github.com/dotnet/corefx/commit/360621af9620de205193f627ae84c41ddec60551
2019-06-02 20:25:37 -04:00
Viktor Hofer b661c58b1c Replace netstandard test projects with tfms
Netstandard test projects are broken by design and don't support the
Microsoft.Net.Test.SDK. Replacing the netstandard tfm with the concrete
implementation tfms.


Commit migrated from https://github.com/dotnet/corefx/commit/d29c16c99c6045ee67444a7a693dd4476861c463
2019-05-30 16:18:41 +02:00
Viktor 7e4b5f9b01 Update src folder
Commit migrated from https://github.com/dotnet/corefx/commit/817c36a05ef2d92e59ce6f5a37e2be50076361b3
2019-04-02 19:21:57 +02:00
Jan Kotas 73d87d58c7 Update Environment.Version test to not expect hardcoded version (dotnet/corefx#35512)
* Update Environment.Version test to not expect hardcoded version

Contributes to https://github.com/dotnet/corefx/issues/31099

* Fix nit


Commit migrated from https://github.com/dotnet/corefx/commit/d8473a7bab7cb9b26344281913c488b7475644bb
2019-02-22 05:55:41 -05:00
Viktor Hofer 8585939ef2 Update xunit to official 2.4.0 runner
Add necessary Test SDK assemblies

Enable test sdk props & targets only for netcoreapp


Commit migrated from https://github.com/dotnet/corefx/commit/f528b668fcd06efbde72a9510feb189e3988d795
2018-08-23 19:53:34 +02:00
Dan Moseley 38133b2a02 Handle overflow in uname -r (dotnet/corefx#31261)
* Avoid overflow in Unix uname -r parsing

* tests

* Add test

* Fix


Commit migrated from https://github.com/dotnet/corefx/commit/f9bb2de5b9a324994914c1cd5231be6126e9c121
2018-07-23 13:21:06 -07:00
Dan Moseley 5952d4f85c Disable 3 Buffer tests for UAP (dotnet/corefx#29867)
* Fix Buffer tests for UAP

* Fix Environment tests for UAP

* Fix url


Commit migrated from https://github.com/dotnet/corefx/commit/7ab6a33e3edaf56df218b49c56691f3972c781a5
2018-05-23 20:17:41 -07:00
Wes Haggard 48435d988c Comment out a few more KnownFolders that aren't set everywhere
Commit migrated from https://github.com/dotnet/corefx/commit/2fe97b8c1d4afa9eecb674f5fe3addf238e440d1
2018-04-27 14:56:41 -07:00
Sung Yoon Whang fcdd223c1f Added test for logging exception details on calls to Environment.FailFast (dotnet/corefx#28644)
* Added test for logging exception details on calls to Environment.FailFast

* Add more cases to test

* Remove CollectConsoleOutput and pass in StartInfo instead

* Separate out test cases into independent tests, change Assert.True to Assert.Contains, lowercase String

* fix NETFX failure


Commit migrated from https://github.com/dotnet/corefx/commit/e6214129d52616632e9187b9b33e182e8d643f55
2018-04-11 12:05:53 -07:00
Jeremy Kuhne 195d4f4729 Windows interop fixes for System.Runtime.Extensions (dotnet/corefx#28089)
* Windows interop fixes for System.Runtime.Extensions

- Allow for long paths in GetCurrentDirectory
- Use ValueStringBuilder instead of StringBuilder
- Handle buffer growth

* Add System.Memory to System.Diagnostics.PerformanceCounter

* Address feedback, minor cleanup


Commit migrated from https://github.com/dotnet/corefx/commit/050bc33738887d9d8fcc9bc5965b7d9ca65bc7f4
2018-03-15 14:56:02 -07:00
Maryam Ariyan 552bcb340b Fix failing outerloop tests in System.Runtime.Extensions (dotnet/corefx#27415)
* Fix outerloop in System.Runtime.Extensions

* Add back finalizer to call Dispose(false)

* Fixing Dispose issue on Unix.

Also making code style consistent in ProcessTestBase by having a using statement to work with RemoteInvokeHandle

* Remove comment


Commit migrated from https://github.com/dotnet/corefx/commit/d27d0d98b4cffbe8b15c5acdb2403112029c48d0
2018-02-28 17:48:37 -05:00
Maryam Ariyan 717ba7b3dc 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
2018-02-01 21:25:21 -05:00
David Shulman 19ef688da1 Cleanup Windows 10 version detection (dotnet/corefx#25052)
* Cleanup Windows 10 version detection

Windows 10 Version 1709 ("Fall Creators Update") has been released. This
PR cleans up the version detection to use the latest RTM build numbers
and removes obsolete InsiderPreview detection for those tests.

Also, removed ActiveIssue for tests that are now fixed due to Windows 10
fixes.

Fixes dotnet/corefx#22187

* Addressed feedback


Commit migrated from https://github.com/dotnet/corefx/commit/ac410223aa763a0f67880815057ee1bfe0f4cb6e
2017-11-04 11:09:38 -07:00
Dan Moseley 021b0d7407 Disable Drawing tests on Server Core (dotnet/corefx#23983)
* Add IsWindowsServerCore

* Disable tests for Server Core

* Redundant check

* Mssing ref


Commit migrated from https://github.com/dotnet/corefx/commit/612c36d672297d0308058e1edc803a19dba9811d
2017-09-12 13:55:56 -07: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
Santiago Fernandez Madero a5c6e5bb0a Change SkipOnTargetFramework to ConditionalTheory as this will enable the tests in UapAot whenever we move to running them inside AppContainer (dotnet/corefx#23511)
Commit migrated from https://github.com/dotnet/corefx/commit/f499ace4c19ee2ef8975c8c436601e04b6b6efc5
2017-08-23 22:11:47 -04:00
Santiago Fernandez Madero 306d22c941 Fix wrong SkipOnTargetFramework in EnvironmentTests which were not skipped in uapaot (dotnet/corefx#23452)
Commit migrated from https://github.com/dotnet/corefx/commit/6572e105ca33d067b6012cc5946e01c6552af06a
2017-08-22 09:02:53 -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