summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2019-02-21Support COM events (#22721)Aaron Robinson20-32/+697
* Add support for COM events * Add COM Event tests
2019-02-21JIT: handle preference miss two register xmm return case (#22733)Andy Ayers1-3/+0
Fix a bug in codegen when returning a Vector3 result where the target register is not one of the two return registers. Re-enable the associated test. Closes #22401.
2019-02-21Enable the HWIntrinsic extension methods and remove the instance ↵Tanner Gooding186-1893/+2524
implementations (#22705) * Removing various S.R.I.Vector instance method APIs, since they should now be exposed as extension methods * Updating the JIT to recognize the S.R.I.Vector extension methods. * Updating various S.R.I.Vector test templates * Regenerating the S.R.I tests that are created from a template. * Fixing the numArgs for Base_Vector256_GetLower * Fixing the handling for `Base_VectorXXX_As` to normalize the struct type. * Adding the Base_Vector128_As intrinsics back for arm64
2019-02-20Fix dblarray tests and reenable for arm32 (#22718)Andy Ayers5-60/+99
Run the allocate/gen-check sequence under a forbid GC region, and enable the tests for arm32. Closes #22015.
2019-02-19Add ManagedRuntimeEventSource (#22515)Sung Yoon Whang1-0/+60
* Adding a dummy ManagedRuntimeEventSource * Add ManagedRuntimeEventSource * Renaming ManagedRuntimeEventSource to RuntimeEventSource * some cleanup * use Condition instead of ifdefing out the whole file * some cleanups * remove unused namespaces * Move m_RuntimeEventSource to RuntimeEventSource from EventPipeController * Adding some TODO items * address more pr comments * Use GUID to initialize RuntimeEventSource * Exclude BasicEventSourceTests from CoreFX test CI leg * Addressing rest of the PR feedback * dont dispose counters on disable command to avoid races
2019-02-19Correct the assert to add R8 as a potential valid registerBrian Sullivan1-18/+0
Also fix the calls to RemoveElemD to use lvVarIndex Re-enable the interop tests that were failing on ARM64
2019-02-19Cleanup Calendars code (#22582)Hugh Bellamy1-0/+14
2019-02-19Fixing extension method overload resolution for some S.R.I.Vector methods ↵Tanner Gooding1-12/+12
(#22696)
2019-02-19Optimize Vector128/256<T>.Get/WithElement (#22353)Fei Peng3-0/+276
2019-02-18Adjust gc stress compatibility settings for two tests (#22633)Andy Ayers2-1/+1
* enable eventsourcetrace for gc stress. Closes #17188. * disable GitHub_12224 for gc stress (relies on timeout). Closes #19086.
2019-02-18Use correct version for Microsoft.NETCore.Platforms (#22683)Jan Kotas5-5/+5
2019-02-18Fix constrained call corner cases (#22464)Michal Strehovský10-13/+605
Fixes #22423. I'm still unclear on how JitStress manages to get itself into that situation, but I was able to write a repro that triggers the `!pMDAfterConstraintResolution->IsInterface()` assert using regular IL, so we need to handle that either way. The repro for that is constrained3.il. While figuring out the repro, I wrote a bunch of other test code and found another bug (constrained2), where we would box in a situations that doesn't require boxing (canonically ambiguous situation where there's a suitable default interface implementation and a valuetype implementation of the constrained method that does not requires boxing once we no longer deal with __Canon).
2019-02-17Fix the build of Loader/NativeLib test (#22648)Swaroop Sridhar4-8/+9
The native test assets were not build correctly on Unix platforms. The native library exports were generated as private symbols by clang. This change fixes the export declaration so that the global symbols are correctly generated for exported symbols. Fixes #22549
2019-02-16Only import the RoslynPropsFile if it exists. (#22657)Tanner Gooding1-1/+1
2019-02-15[master] Update dependencies from dotnet/corefx (#22595)dotnet-maestro[bot]252-1107/+1111
* Update dependencies from https://github.com/dotnet/corefx build 20190213.23 This change updates the following dependencies - Microsoft.NETCore.Platforms - 3.0.0-preview4.19113.23 - Microsoft.Private.CoreFx.NETCoreApp - 4.6.0-preview4.19113.23 * Update dependencies from https://github.com/dotnet/corefx build 20190215.1 This change updates the following dependencies - Microsoft.NETCore.Platforms - 3.0.0-preview4.19115.1 - Microsoft.Private.CoreFx.NETCoreApp - 4.6.0-preview4.19115.1 * Fixing up the tests dependent on the S.R.I.Vector API changes * Regenerating the tests dependent on the S.R.I.Vector API changes * Disabling an outdated CoreFX test.
2019-02-15JIT: modify how jit determines when to update a type (#22618)Andy Ayers6-0/+163
For single-def locals, the type of a reference seen at the assignment to the local may be a more specific type than the local's declared type. If so the jit would prefer to use the assignment type to describe the local's value, as this will lead to better optimization. For instance in ``` object x = "a string"; // only assignment to x ``` the jit can optimize better if it models the type of `x` as `string`. Instead of relying on `mergeClasses` plus some jit-side screening to decide if the assignment type is a more specific type, implement a new jit interface method `isMoreSpecificType` that tries to answer this question more directly. Added a test case with type equivalence that hit asserts. Closes #22583.
2019-02-15Delete references to System.Memory package that does not exist anymore (#22626)Jan Kotas3-7/+1
2019-02-15Disable failing corefx test (#22625)Jan Kotas1-0/+14
Related to https://github.com/dotnet/corefx/issues/35351
2019-02-15Manually update the dependencies.props and move S.P.Corelib to use ↵Tanner Gooding20-44/+13
LangVersion=8.0 (#22452) * Update BuildTools to preview1-03713-01 (master) * Updating CoreCLR to use LangVersion=8.0 * Moving the Windows scripts to default to `dotnet msbuild` for managed components * Setting UseSharedCompilation=true * Changing some additional callsites that were using msbuild to use dotnet msbuild * Revert packages.builds to use Desktop msbuild on Windows * Fixing runtest.cmd to always set DotNetCli
2019-02-14Remove unnecessary ProjectReferences to CoreCLRTestLibrary (#22539)Egor Chesakov259-766/+5
Remove the ProjectReferences to CoreCLRTestLibrary.csproj in the project files where CoreCLRTestLibrary is not actually being used. Each ProjectReference item is ended up in PrepareProjectReferences target that creates unnecessary items.
2019-02-14Fix check for memory containment safety. (#22563)Eugene Rozenfeld2-0/+80
This change ensures that if an operand can produce an exception and any instructions executed after the operand evaluation but before the operand's parent can also produce an exception, the operand shouldn't be contained. The reason is that in this case operand containment may reorder exceptions. With `strict` set to true the containment is blocked here: https://github.com/dotnet/coreclr/blob/d27fff3f65193dd71c6197e9876101f496bbd28b/src/jit/sideeffects.cpp#L485-L488 Also, make the check for ordering side-effect interference less conservative. Fixes #22556.
2019-02-13Use dependency flow for core-setup and corefx dependencies (#22544)Juan Hoyos12-61/+61
* Remove old use of signing package used to work around SPC signing now that arcade has bubbled up the version. * Move dependency update for CoreFX and Core-setup dependencies to BAR/Darc/Maestro++ flow * Update property references in tests. * Version bump for CoreFX and Core-Setup dependencies. * Update test Github_20958 to use revised System.Range constructor as surface area changed with #22331.
2019-02-12Fix exception sets for indirections in value numbering. (#22542)Eugene Rozenfeld1-3/+0
fgValueNumberAddExceptionSetForIndirection had a bug where INDIR(ADD(x, <big_offset>)) had NullReferenceException(x) added instead of NullReferenceException(ADD(x, <big_offset>)). Fixes #20358.
2019-02-12Bug Fix: Calling System.Diagnostics.Tracing.EventPipe.Enable twice asserts ↵José Rivero2-0/+216
#22247 (#22318) After disabling EventPipe -> SampleProfiler, we were not closing the thread shutdown event, thus asserting on reentrance of the EventPipe. * Adding regression test, and removing comment. * Waits until the specified object is in the signaled state.
2019-02-12Update COM Activator class (#22317)Aaron Robinson29-57/+360
* Update COM Activator to use ALCs * Update tests to now supply an assembly name rather than an binary "path" since the COM activator is now using ALCs. * Add test for non-rooted assembly path. * Move the hostpolicy mock project to a Common area Move hostpolicy mock API to CoreCLR test library * Add test for COM server isolation * Move ComActivator class and logic to Internal namespace.
2019-02-12Add new rounding modes to System.Math, System.MathF (#20815)hamish-rose1-0/+4
* add new rounding modes to MidpointRounding.cs new modes added to enum implemented ToZero for double in Math.cs * ToZero implementation * implement double and float rounding modes * updating rounding implementation now round inline with DecCalc internal round implementation * small bug fix also replace var to make things obvious * update implementation - floor/ceil code review feedback * review feedback add comments, update MathF with floor/ceil * code review feedback - fix comments - replace ifelse with switch - remove RoundingMode enum from DecCalc * exclude outdated corefx test
2019-02-11Support building with VS2019 Preview (#22525)Tanner Gooding2-103/+132
* Support building with VS2019 Preview * Fixing gen-buildsys-win to only set the architecture for the VS generator * Refactoring Dev11/147911/fpcw.cpp so that it compiles under VS2019 * Removing the remaining traces of VS2015 build support
2019-02-11Move runincontext to src/toolsRuss Keldorph2-583/+0
This SDK-style project is causing problems on some machines with VS installs that can't build it. For now, move it to a place where it doesn't build with the tests.
2019-02-11Move GCHandle to shared (#22499)Stephen Toub1-0/+8
* Move GCHandle to shared * Cache the handle in a local to make it easier for JIT to generate good code * Rename m_handle to _handle to match the coding conventions * Delete isPinned argument for GCHandleInternalCompareExchange * Add fast path to GCHandle.Alloc/Free FCalls * Disable outdated test
2019-02-08Update BuildTools, CoreFx, CoreSetup to preview1-03706-01, preview.19106.8, ↵dotnet-maestro-bot1-0/+174
preview-27406-8, respectively (master) (#22455) * Update BuildTools, CoreFx, CoreSetup to preview1-03706-01, preview.19106.8, preview-27406-8, respectively * Disabling some outdated System.ObjectModel CoreFX tests * Undo BuildTools update
2019-02-08Force results of rejected multi-reg-returning tail-call candidates to temp. ↵Eugene Rozenfeld2-0/+101
(#22364) * Force results of rejected multi-reg-returning tail-call candidates to temp. Issue #20269 ran into an assert when trying to merge returns, one of which is a call to a multi-reg-returning method. The repro in the bug is a pmi of `System.Reflection.Metadata`. I added a simple repro test case. Results of calls to multi-reg-returning methods are expected to be saved to temps. Normally it's ensured by `impFixupCallStructReturn`; however, it doesn't do that for tail-call candidates. This change forces results of calls to multi-reg-returning methods to temps if the tail call is rejected late in morph. Fixes #20269.
2019-02-07Disable more baseservices/threading/interlocked tests on Ubuntu.Arm64 (#22471)Egor Chesakov1-0/+12
In the last two weeks the following tests have failed: * baseservices/threading/interlocked/exchange/ExchangeTClass - 5 times * baseservices/threading/interlocked/exchange/ExchangeTString - 13 times * baseservices/threading/interlocked/exchange/ExchangeTString_1 - 12 times * baseservices/threading/interlocked/exchange/ExchangeTString_2 - 20 times In addition to the previously disabled tests (in #22304): * baseservices/threading/interlocked/compareexchange/CompareExchangeTClass - 9 times * baseservices/threading/interlocked/compareexchange/CompareExchangeTClass_1 - 32 times All the failures happened on Ubuntu.1804.Arm64.Open Helix queue in Azure DevOps Pri1 jobs **Related issue:** #22303
2019-02-07Merge pull request #22435 from ↵Egor Chesakov3-14/+8
echesakovMSFT/TreatCLRTestExecutionArgumentsAsAnArrayInBash Treat CLRTestExecutionArguments as an array in generated Bash scripts
2019-02-07Fixing Utf8Formatter.Float to support all the same format specifiers as the ↵Tanner Gooding1-0/+8
utf16 formatter. (#22434) * Fixing Utf8Formatter.Float to support all the same format specifiers as the utf16 formatter. * Disabling some outdated CoreFX tests. * Fixing TryFormatFloatingPoint to special-case format.IsDefault
2019-02-07Fix delegate creation for default interface methods on structs (#22427)Michal Strehovský2-0/+215
We only need to find an unboxing stub if we resolved the interface to a valuetype method. If we resolved to a default interface method implementation, unboxing is not necessary.
2019-02-06Index and Range updates (#22331)Tarek Mahmoud Sayed3-13/+15
* Index and Range updates * Address @mikedn feedback * Address Feedback * more feedback * Use Deconstruct in Range.GetOffsetAndLength * Rename GetArrayRange to GetSubArray * Temporary disable the old Corefx Range tests * Return back the TimeSpan test disabling * Fix Range jit test * Exclude the jit test * revert the changes in the jit Range test * Address Suggested Feedback
2019-02-06Merge pull request #22450 from BruceForstall/DisableFlakySystemNetTestsBruce Forstall1-0/+1
Disable flaky Linux/arm64 corefx System.Net.Sockets.Tests
2019-02-06Throw an exception when passing strings by-value as out parameters. (#21513)Jeremy Koritzinsky6-4/+24
* Throw an exception when passing strings by-value as out parameters. * Fix encoding * Don't use override in this PR. * Clean up Marshal_In Marshal_In was copied back into existence from Marshal_InOut. Clean it up a bit. * Remove extraneous whitespace. * Fix failing test. * Remove out attribute in COM string tests. * Add back attribute and check for exception thow in COM tests. * Add block comment to explain the implementation of Reverse_LPWStr_OutAttr in the NETServer. * Only throw in a CLR->Native marshalling situation. * Fix asserts from changed code-paths used in ILWSTRMarshaler. * Add comment and explicitly load in a null value (instead of leaving it uninitialized). * Apply suggestions from code review Co-Authored-By: jkoritzinsky <jkoritzinsky@gmail.com> Co-authored-by: Jan Vorlicek <janvorli@microsoft.com>
2019-02-06Disable flaky Linux/arm64 corefx System.Net.Sockets.TestsBruce Forstall1-0/+1
Tracking: https://github.com/dotnet/coreclr/issues/21576 In general, any System.Net test that exhibits flakiness should be disabled; we pay more in flakiness than we gain in coverage.
2019-02-06Treat $(CLRTestExecutionArguments) as an array in BashEgor Chesakov2-8/+8
2019-02-06Enable baseservices/threading/paramthreadstart/ThreadStartString_1Egor Chesakov1-6/+0
2019-02-06Add option to run tests in unloadable context (#22332)Jan Vorlicek68-9/+202
This change adds new "runincontext" option to the tests/runtest.cmd that allows running tests inside of an unloadable AssemblyLoadContext. It also adds new property that allows tests to be marked as incompatible with running this way. All known tests that have such issue are marked in this PR too.
2019-02-05Merge pull request #22433 from BruceForstall/DisableFailingLinuxArm64TestBruce Forstall1-0/+3
Disable failing constrainedcall test
2019-02-05Merge pull request #22438 from BruceForstall/DisableFailingXarchTestsBruce Forstall1-0/+18
Disable failing BestFitMapping tests
2019-02-05Merge pull request #22439 from BruceForstall/DisableWaitOne2Bruce Forstall1-0/+3
Disable baseservices\threading\mutex\misc\waitone2 test
2019-02-05Disable GThread23 testBruce Forstall1-0/+3
It fails regularly though randomly in the CI. Tracking issue: https://github.com/dotnet/coreclr/issues/19339
2019-02-05Disable failing constrainedcall test on LinuxBruce Forstall1-0/+3
Tracked by https://github.com/dotnet/coreclr/issues/22423
2019-02-05Disable baseservices\threading\mutex\misc\waitone2 testBruce Forstall1-0/+3
This test has been failing randomly in the CI on all architectures for a long, long time. Tracking issue: https://github.com/dotnet/coreclr/issues/6397
2019-02-05Disable failing BestFitMapping testsBruce Forstall1-0/+18
Tests: ``` Interop\PInvoke\BestFitMapping\Char\AFT_PFT\AFT_PFT\AFT_PFT.cmd Interop\PInvoke\BestFitMapping\Char\Assembly_False_False\Assembly_False_False\Assembly_False_False.cmd Interop\PInvoke\BestFitMapping\LPStr\AFT_PFT\AFT_PFT\AFT_PFT.cmd Interop\PInvoke\BestFitMapping\LPStr\Assembly_False_False\Assembly_False_False\Assembly_False_False.cmd ``` Tracked by https://github.com/dotnet/coreclr/issues/22436
2019-02-05Merge pull request #22431 from BruceForstall/DisableCorefxFailingTestsBruce Forstall1-0/+2
Disable failing Linux/arm64 corefx tests