Skip to content

Enable tests that depend on the presence of unmanaged callers only in the runtime#50845

Merged
333fred merged 4 commits intodotnet:masterfrom
333fred:enable-tests
Jan 28, 2021
Merged

Enable tests that depend on the presence of unmanaged callers only in the runtime#50845
333fred merged 4 commits intodotnet:masterfrom
333fred:enable-tests

Conversation

@333fred
Copy link
Member

@333fred 333fred commented Jan 27, 2021

Now that we have .NET 5 in our test assemblies, we can enable tests that actually need it to run. Fixes #46676.

… the runtime

Now that we have .NET 5 in our test assemblies, we can enable tests that actually need it to run. Fixes dotnet#46676.
@333fred 333fred requested a review from a team as a code owner January 27, 2021 23:00
@ghost ghost added the Area-Compilers label Jan 27, 2021
Derived2 Stdcall, Stdcall, Thiscall ref return
";

var allSourceComp = CreateCompilationWithFunctionPointers(@using + executableCode + source1 + source2, options: TestOptions.UnsafeReleaseExe);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider passing as a collection of source: CreateCompilationWithFunctionPointers(new[] { executableCode, source1, ... }, ...).

@AlekseyTs
Copy link
Contributor

It looks like there are CI failures.

* upstream/master:
  For the purpose of runtime capability check require RuntimeFeature type to be a static class. (dotnet#50829)
  Allow mixed declaration and assignment in deconstruction (dotnet#44476)
  Disable sdl
  Fix crash around handling delegating of constructors cross-project
  Clarify in a comment when some stuff loads
  Don't reference the implementation type directly if we don't need it
  Remove the CreateWorkspace() method that implies it's created there
  Delete AbstractPackage`2.IsInIdeMode()
  Remove some very outdated comments
@jaredpar
Copy link
Member

Looks like the test failures are #50521.

@333fred
Copy link
Member Author

333fred commented Jan 28, 2021

Looks like the test failures are #50521.

Aleksey was commenting on the test failures I had fixed locally but forgotten to push.

@333fred
Copy link
Member Author

333fred commented Jan 28, 2021

@AlekseyTs I've addressed the test failures.

Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (commit 4)

@333fred 333fred merged commit 259c6e1 into dotnet:master Jan 28, 2021
@333fred 333fred deleted the enable-tests branch January 28, 2021 19:38
@ghost ghost added this to the Next milestone Jan 28, 2021
@RikkiGibson RikkiGibson modified the milestones: Next, 16.10.P1 Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move tests to .NET 5 P8 when available

5 participants